Forum Discussion

sunrays123's avatar
sunrays123
Occasional Contributor
7 years ago

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

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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.