H
H
haniaman2020-09-10 12:20:30
Python
haniaman, 2020-09-10 12:20:30

How to switch page in Selenium?

Hello, how can I switch the page to "Wheel" on the site (rublix.best) (prnt.sc/ueso6p)?

Tried it this way:

from selenium import webdriver

driver = webdriver.Chrome()

driver.get("https://rublix.best/")

time.sleep(20)
wheel = driver.find_elements_by_xpath("/html/body/div[1]/div[1]/nav/ul[1]/li[2]/a")
wheel.click()

But it gives me an error " AttributeError: 'list' object has no attribute 'click' "

Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question