You can an element by it’s using CSS and passing in the as the locator. In this case I’m using find_element to do it:

@driver.find_element(css: '[type="text"]')

You could also do this for the name attribute:

@driver.find_element(css: '[name="FirstName"]')



Source link https://sqa.stackexchange.com/questions/33590/-with--how-to-identify-an--by-its-type-e-g-input-type-text

LEAVE A REPLY

Please enter your comment!
Please enter your name here