AscentialTest Support Hub

Dynamic Instantiati…

 

Notifications

Clear all

Dynamic Instantiation



1

Posts


1

Users


0

Reactions


35.1 K

Views

(@blesuer)
Member Admin

Joined: 4 months ago
Posts: 33

Topic starter
 

If you want to interact with or check for the existence an object that has not been defined you can use a selector to do so. For example if you want to know whether a textual object is on your web page, you can use the following approach:

MyPage.WebText[“the text of the object goes here”].IsPresent()

If you want to match the case as well as the text, add the ‘exact’ selector modifier to the action like this:

MyPage.WebText[“the text of the object goes here”, exact].IsPresent()



   

Quote

Share:

Can’t Find An Answer in the Forum?

Contact Our Team