skip to Main Content

Visual Studio Code – Unable to locate 'No thanks' and Sign in element on google home page at ""

Code used in VISUAL STUDIO CODE: from selenium import webdriver from import Service from import ChromeDriverManager from import By import time driver = webdriver.Chrome(service=Service(ChromeDriverManager().install())) driver.get("") driver.maximize_window() time.sleep(3) driver.find_element(By.XPATH,"/html/body/div/c-wiz/div/div/c-wiz/div/div/div/div[2]/div[2]/button").click() enter image description hereError getting selenium.common.exceptions.NoSuchElementException: Message: no such…

Back To Top