skip to Main Content

Visual Studio Code – Unable to locate 'No thanks' and Sign in element on google home page at "https://www.google.co.in/"

Code used in VISUAL STUDIO CODE: from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.by import By import time driver = webdriver.Chrome(service=Service(ChromeDriverManager().install())) driver.get("https://www.google.co.in/") 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…

VIEW QUESTION
Back To Top
Search