python - selenium webdriver url navigation (on microsoft edge with window10) , hang after 28/29th url -


i have been doing url navigation ( list of url in file ) using selenium webdriver microsoft edge browser on window 10 machine. have written automation script in python.

code snippet :

driver = webdriver.edge() driver.set_page_load_timeout(60) url in list_of_url: #100 url print "navigating url :",url driver.get(url) 

so after navigating 28th url, script got hanged on 29th url on "driver.get(url)" line ,and never return. have tried different list of urls, behavior same, got hanged on 29th url.

pls issue.

you missing edge browser standalone server. download webdriver microsoft edge, , place in same directory scripts stored.

try code snippet below, working fine me -

import os selenium import webdriver  # create new edge session dir = os.path.dirname(__file__) edge_path = dir + "\microsoftwebdriver.exe" driver = webdriver.edge(edge_path) driver.implicitly_wait(10) # driver.maximize_window()  driver.get("https://www.freelancer.in/")  login_button = driver.find_element_by_class_name("landingheader-authbtn") login_button.click() 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -