Answer the question
In order to leave comments, you need to log in
How to solve this error in Selenium Python?
Here is the code:
import selenium
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
driver = webdriver.Firefox()
driver.get("https://toster.ru/")
time.sleep(7)
driver.refresh()
time.sleep(3)
link = driver.find_element_by_xpath("/html/body/div/div/div/div/div[6]/div/div[2]/a")
link.click()
Answer the question
In order to leave comments, you need to log in
link = driver.find_element_by_xpath("/html/body/div/div/div/div/div[6]/div/div[2]/a")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question