Home > front end >  How to click login button?
How to click login button?

Time:01-01

I can't get the code to click the "Login to Facebook" button, I tried without success:

Link

wait.until(EC.element_to_be_clickable((By.XPATH, "/html[1]/body[1]/div[1]/div[1]/div[2]/div[1]/div[2]/ div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/span[1]/div[1]/div[1]/div[1]" ))).click()

CodePudding user response:

Try to use relative XPATH instead of Full XPATH, It will be more accurate.

Or if possible try to share screenshot of element you are trying to access.

I found This XPATH hope it will work.

driver.find_element(By.XPATH,"//form[@class='_9vtf']/div[2]/button").click()

  • Related