File "expertsBrazil2webdriver.py", line 16, in <module> driver.findElement (By.linkText("SIGN IN")).click() AttributeError: 'WebDriver' object has no attribute 'findElement'
from selenium import webdriver from selenium.webdriver.common.proxy import * import traceback import random import os import time os.environ["SELENIUM_SERVER_JAR"] = "/Users/rjw/Documents/Python/selenium-server-standalone-3$ browser = None try: # browser = webdriver.Firefox() driver = webdriver.Safari() driver.get('https://www.blogger.com/about/') # navigate to your blog time.sleep(5) driver.findElement (By.linkText("SIGN IN")).click() except: print(traceback.format_exc()) finally: if browser: browser.quit()
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE