cancel
Showing results for 
Search instead for 
Did you mean: 

How to read content from the webpage (chrome)

Highlighted
Occasional Contributor

How to read content from the webpage (chrome)

Hi, I am automating desktop application in which I want to print one of my application UI that opens in a chrome browser and have to get the webpage text that needs to copy in an excel file. I am able to launch excel file but not able to copy the webpage content.

 

I was using  Aliases.chrome.wndChrome_WidgetWin_14.Keys("^a^c") but for certian pages, wndChrome_WidgetWin_14 object is undefined.

 

Please help me out how can I achieve this. Thanks in advance!

1 REPLY 1
Highlighted
Community Hero

Re: How to read content from the webpage (chrome)

There are two possibilities:

 

1) The mapping you're using for wndChrome_WidgetWin_14 is insufficient to properly identify the object for any and all pages

2) There may be a timing issue where it might take longer than your automation allows for for the component to come up.  This would be where you would use a WaitAlias or WaitProperty or something to make sure that you wait for the component before you attempt to act against it.


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
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!