Home » Java » Selenium – Is there a way to get an Array from browser Console? (Java)-Exceptionshub

Selenium – Is there a way to get an Array from browser Console? (Java)-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have a hard time finding a solution to my problem.

The scenario is this one: When I open my web app, I get in the browser Console an Array that I need to retrieve in my automation tests. I need this Array, because I need to do some operation based on it.

Is there a way using Selenium and Java to get this Array?

See the attached image for more info:
enter image description here

How to&Answers: