Basic runtime script error on python with selenium

Viewed 20

I would like to point out that I am a beginner and that I started barely 48 hours ago.

I want to code a script that runs a page, enters username and password, click in the login button and clicks in a tab once logged in.

But I encounter an error, it only opens the page for me and does not enter any id/pw and click.

I tried to search and try some changes in the path but it doesn't change anything, and at worst doesn't launch my page anymore, I'm a little lost so I ask for your help please.

enter image description here

1 Answers

From the Selenium docs Finding Web Elements
So in your code,
import By from selenium.webdriver.common.by import By
and use wb.find_element(By.XPATH,"your_xpath")

Related