dimanche 17 juillet 2016

Python webdriver connect to already webpage (selenium)

I need to open multiple links in separate tabs or sessions... I already know how to do it, so what i would like to know is if it's possible to connect to an already open webpage instead of open every links every time i run the script. What i used now in Python is:

from selenium import webdriver
driver.get(link)

The purpose would be once i run the first script (to load multiple links), the second should connect to the webpages, refresh them and continue with the code. Is it possible? Anyone know how to do it?

Thanks a lot for the help!!!!

Aucun commentaire:

Enregistrer un commentaire