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()
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.