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

One of my scripts is causing others in the same directory to have problems with Selenium

$
0
0

I have multiple scripts in my python directory for pulling up various websites and logging me in and doing various other tasks. They work perfectly fine until I created another script to log into my email and now none of those scripts in that directory will work while that email script is in there. If I move the script to a different directory then all the previous ones work again but then the current directory with my email.py will have issues with selenium webdriver giving me the

"AttributeError: module 'selenium.webdriver' has no attribute 'Chrome'"

Question is how do I fix this and why is it occurring with only that file?

from selenium import webdriver

driver = 
webdriver.Chrome(executable_path='/users/roughcaster/Downloads/chromedriver')
driver.get('https://sso.secureserver.net/login?app=email&realm=pass')
username = 
driver.find_element_by_id('username').send_keys('trey@nationwideautoshipping.com')
password = driver.find_element_by_id('password').send_keys('Ship2020*')
signin = driver.find_element_by_link_text('Sign In').click()
driver.quit()

Viewing all articles
Browse latest Browse all 97790

Trending Articles



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