cancel
Showing results for 
Search instead for 
Did you mean: 

Scraping data from a desktop application

SOLVED
Highlighted
Occasional Contributor

Scraping data from a desktop application

Hey community, 

 

I'm currently looking for a way on how to extract data from a table within a desktop application which doesn't really play nice with TestComplete (for now!). I'm able to extract the number of columns and rows. Then again, when I try to access each element individually I get a value of null. The object I'm handling is identified as a sorted table which pretty much englobes the entire table and not each cell individually. 

 

Does anyone happen to know any solution on how to extract the text from each cell individually?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Scraping data from a desktop application

Try having a look in the Object Browser while you have the executable running.   You should be able to browse it's object model and have a look at whether the values you're looking for are available to TC.  That's where I'd start.   Once you find it you can right click and make an alias for it then address it in code as Aliases.Blah.Blah.blah.StuffImLookingFor

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: Scraping data from a desktop application

Assuming you reference the table as an object like Aliases.MyApp.MyTable what do you get when you do

 

Log.Message(Aliases.MyApp.MyTable.Cell(5,5)) assuming 5,5 is a valid co-ordinate?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

Re: Scraping data from a desktop application

I can't reference the table by Aliases.MyApp.MyTable.Cell(x,y). But, I can use "cellEditor" and "cellSelectorEnabled" at the most by cell-wise indicators.

Highlighted
Occasional Contributor

Re: Scraping data from a desktop application

Try having a look in the Object Browser while you have the executable running.   You should be able to browse it's object model and have a look at whether the values you're looking for are available to TC.  That's where I'd start.   Once you find it you can right click and make an alias for it then address it in code as Aliases.Blah.Blah.blah.StuffImLookingFor

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors