How to check if there is text inside of a textbox?


#1

Hi
Im trying to make an IF condition, but dont know how to check if text is present in textbox…

it’d look something like this :

storeTextPresent | TextinTextbox | variableA
if | VariableA==true |
click | link
else | whatever

How can i check if there is text in the text box and make a variable out of it like this ?


#2

@antonincaeiro, please try https://docs.katalon.com/katalon-studio/docs/webui-get-text.html


#3

Katalon recorder solution, or lack thereof please.


#4

Hi, Katalon in Reference tab suggest to use storeTExt instead storeTextPresent. It’s should work just how you wrote this. If there is nothing in textbox, variableA should give false in if condotion, Remember to use “andIf” command as well.