Im making a automated test but the input fields doesn't have any specific id and classes. I don't want to select everything by using xpath so i thought i was going to use the Press Keys
function. After i put the text in the first input i do the function:
Press Keys LOCATOR TAB
After that i used the tab button, it goes to the next form but how do input text in the form? I know there is the input text
function but it needs the locator for entering text. How can i input text without using the input text locator
?
Press Keys
for pretty much every input. Try to useInput Text
if it's possible in any way. If possible, ask the developer to addid
s andclass
es or similar. Or try to find some other unique identifiers. HTML code of the related elements would help to give you the best approach.