roosevelt
roosevelt

Reputation: 1974

Execute Selenium Commands on a Browser that is already open

I am looking for an example code that will allow me to run Selenium commands against a browser that is already open.

Typically when you start testing with Selenium it opens a new instance of the browser. But I am looking for a solution where you would run the script and it will just start executing its codes on whatever browser and tab is currently visible.

Is that possible?

Upvotes: 1

Views: 567

Answers (2)

nilesh
nilesh

Reputation: 14287

No its not. There is an old issue still open since 2009.

Upvotes: 0

Paresh
Paresh

Reputation: 1158

As per my knowledge this is not possible with selenium.

You have to open browser during the test script only otherwise it won't be able to identify or capture already opened browser's object.

Upvotes: 1

Related Questions