Hi guys,
I am a beginner of using katalon recorder to tesing a website, the requirement is get the text of a input field, like this
on the above picture, I want to get the text before these input field, such as html “id=money”, I want to get the text before it “转账金额”, how can I to realize the requirement?
Thanks
For the object, id=money
, have you tried to use getAttribute("value")
?
If this doesn’t work, then you may have to create an object that has a link to where the text is located:
id("money")/../preceding-sibling::td
and then use getText()
grylion54:
getAttribute(“value”)
Thanks for your answer, there are two questions:
where should I use the command “getAttribute(“value”)”? because katalon recorder seems like not having the command
when to create a new object? recording?
Katalon Recorder is based on Selenium. I gave you the Selenium command. However, the following video may help in your request.