Topic starter
14/05/2024 9:45 pm
Most of us use selectors to locate a row in a table or grid but they also have another purpose. This is an example of using a selector to dynamically instantiate a WebText object.
Boolean bExists = MyPage.WebText[“some text”, exact].IsPresent()
Replace MyPage with your actual AppObject name of your web page and replace “some text” with the actual text of the object that you want to locate. By adding the keyword ‘exact’, AscentialTest will only find a match if the case of the text exactly matches the supplied text.
Currently viewing this topic 1 guest.
Contact Our Team