I am using Python / Selenium and am trying to select an input box that does not have an ID:
HTML
<div class="form-group">
<input type="email"
class="form-control"
name="quantity"
placeholder="Type a quantity">
</div>
Code
inputElement = driver.find_element_by_id("quantity")
What is the best way to select this element, by name?
find_element_by_name
(Pylint): "E1101: Instance of 'WebDriver' has no 'find_element_by_name' member (no-member)
". For example, Selenium 4.12.0. – Bakst