I have a label/text get displayed as “Number of item found 0” when I have nothing return in my search. I have to capture this particular label. when i tried to capture this using web spy, its coming as “span_Number of item found 0”. object properties are shown in pic attached. Now in my script i have to verify whether this label is displayed or not. I have used verify element clickable, present etc. but nothing working. Every time it returns, element present even if this label is not displayed. Is there any other way to identify this label, "span_Number of item found 0"
It is supposed to assign the boolean value to your variable. Please post more information like screenshot and log files in case it really did not, because then it’s a bug.
please find the log screenshot. I tried to capture the result to a Boolean variable ‘ispresent’. i tried to print the value of ‘isprsent’ but nothing returned. Please correct me if my steps mentioned in the screen is incorrect.