Home > front end >  Nosuch element exception in selenium but the element is present there
Nosuch element exception in selenium but the element is present there

Time:11-24

I was trying to scrape some data from a site.I'm using a selenium for it but i am getting NoSuchElementException when i try to click or get data from the elements in the site even though the element present in there.

code


    from selenium import webdriver
    from webdriver_manager.chrome import ChromeDriverManager
    from selenium.webdriver.common.by import By
    
    driver = webdriver.Chrome(ChromeDriverManager().install())
    driver.get('https://www.priceking.com/')
    driver.maximize_window()
    driver.find_element(By.XPATH, "/html/body/div/center/font/a").click()
    # driver.find_element(By.CSS_SELECTOR, "body > div > center > font > a").click()

Here is site link that i was using ShowMore

  • Related