Monday, 15 February 2010

How to launch several URIs in selenium without crashing firefox? -



How to launch several URIs in selenium without crashing firefox? -

i have list of uris (all of them belong same url) saved in file (about 2000). want code python programme in order pass these uris 1 1 firefox using selenium in order check presence of pictures on each uri (page). there way safely ? mean, if read every uri file , launch firefox it, after checking images done close firefox in order open 1 time again new uri read file crash system/firefox @ to the lowest degree while. how can create firefox visit uris without lanching , closing each new uri ?

do not close browser after visiting link, utilize get() phone call load page in same browser session.

for link in links: driver.get(link) # check presence of pictures

firefox selenium python-3.x selenium-webdriver

No comments:

Post a Comment