It is possible to read the console log of the browser with ui vision?

It is possible to read the console log of the browser with ui vision? Even if it needs to open the inspector to do this.

Can I ask why you need to read it?

Currently the only solution I see is with desktop automation mode:

  • Use XTypes to send keystrokes to open the inspector
  • Send TABS to reach the console
  • Send CTRL+A and CTRL+C to copy the text
  • => Now you have the console log inside the ${!clipboard} variable!

Because I wanted to check when the website sends a error like 504. In my case the website just keeps “loading” forever and the console log already throwed the error. I know that I can put a timer, but I wanted to make it faster.

1 Like