Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97792

How to confirm results from “find_element_by” search using Python and Selenium?

$
0
0

I'm trying to automate login to https://auth.tesla.com/login but getting stuck trying to enter my email address.

I've tried these Python code lines: email_box = driver.find_element_by_xpath("//form[1]") or email_box = driver.find_element_by_link_text('Email') followed email_box.clear()'

But I'm getting an error Element must be user-editable in order to clear it Which suggests I haven’t found the right element. My questions: Is there a way to determine just which html element was found by the find_element_by code? Or perhaps is there a better way to find the email box and enter my email address into? (I'm doing this with Raspbian Buster using Selenium 3.141.0 and Chromium 74.0.3729.157). Thanks!


Viewing all articles
Browse latest Browse all 97792

Trending Articles