Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99026

Selenium webdriver in python - Unable to get browser

$
0
0
from selenium import webdriverimport csvimport timeurl_results=[]driver_ie = webdriver.Ie('C:\\Users\\aviv\\Desktop\\IEDriverServer')with open ('C:\\Users\\aviv\\Desktop\\urlspart.txt','r') as d:    urls= d.read().splitlines()    for i,url in enumerate(urls):        try:            print "URL: "+ url            driver_ie.get(url)            time.sleep(7)            current_url_ie = driver_ie.current_url            redirect_ie='No'            if current_url_ie == 'https://www.aviv.com':                redirect_ie ='Yes'        except Exception,e:            redirect_ie = 'error'            print e, Exception          writer.writerow([i,url,redirect_ie])ofile.close()

This code throw exception with message: "Unable to get browser".

I have already changed Internet Options --> Security and signed the "Enable protected mode",But the error still exists.

Anyone solution ?


Viewing all articles
Browse latest Browse all 99026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>