Reputation: 1974
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
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