Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Initiate a browser session manually and pass over control of that session to selenium for automation & processing?

Deepak:

Is it possible to pass control of a USER OPENED Browser to a Selenium webdriver? For example, lets say, I'm browsing a site (manually) and like a particular page www.facebook.com and I decide to scrape it. How can I pass control of THIS PAGE to my chrome web driver and have selenium do whatever scraping I need? I dont mind switching browsers and I use a Mac.

I was able to figure out how to initiate a browser session from the webdriver and then pick it up with another web driver later on using the session id and executor url, however, I need the user to be able to initiate the session. How can this be achieved?

Thanks

PS: I know I can use the .get(url) or .gotourl(url) methods and make selenium go to any site I want, but instead I'd like the browser to be already opened in whatever user browsing session, and upon user discretion, have selenium scrape that particular site on request. He needs to have minimal to no code intervention. How might we achieve this?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Initiate a browser session manually and pass over control of that session to selenium for automation & processing?

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×