Getting HTML code and response status from UiBrowser


#1

Is it possible to get the HTML code and response status from the UiBrowser object?

I will use it in case the robot cannot find some specified input fields. Then I will save the HTML code and response status for later debugging.

/Tommy


#2

you may try to send F12 (for IE) to toggle developers console. you will get the DOM in DOM Explorer tab and the response codes for each http request in the Network tab. Afterwards it’s just a matter of reading the text from the UI.

another way would be to send a http request prior to the browser automation. the downside is that you will get the original source code, which may be an issue as most webpages are altered in front end via javascript after the DOM loads.


#3

you can get the HTML code by using activity HTTP Request.