Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (62.9k points)

I am using Python Selenium and am trying to select in input box that does not have an ID

<div class="form-group"><input type="email" class="form-control" name="quantity" placeholder="Type a quantity"></div>

inputElement = driver.find_element_by_id("quantity")

What is the best way to select this element, by name?

1 Answer

0 votes
by (19.7k points)

I think the find_element_by_name() method would fit here:


Hope this helped! 

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium automation certification!

Browse Categories