python - AttributeError: 'WebDriver' object has no attribute ...
stackoverflow.com › questions › 66735222Mar 21, 2021 · selenium webriver in python doesn't have findElementmethod. it has: driver.find_element(By.XPATH, 'your xpath') try to check all of the methods with: print(dir(driver)) try the code: import timefrom selenium import webdriverfrom selenium.webdriver.common.by import Bydriver = webdriver.Chrome()driver.get("https://moitane.ge/shop/5-gudvili/43-axali-xorci-da-xorcproduqti")time.sleep(3)el = driver.find_element(By.XPATH, "//div[@class='style__ShopProductSubCategoryChip-sc-1bc3ssb-2 ...
AttributeError when running script : selenium
www.reddit.com › r › seleniumTraceback (most recent call last): File "selectnext.py", line 12, in <module> webdriver.find_element_by_xpath("//*[@id='container']") AttributeError: 'module' object has no attribute 'find_element_by_xpath' Heres the code i'm using: import selenium from selenium import webdriver from selenium.webdriver.common.keys import Keys