Manojrsr
8 years agoContributor
How to Get Text from WebPages
I need to get Text from Message Alert box, and i need to verify the same in my test.
Attached Properties of objects and script i have written to get text
aqObject.CheckProperty(Aliases.browser.pageProviderAgency2.formAspnetform.table.table.cell.table.table.cell.tableTabbg.table.textnodeLblpaymentdetailsconfirm, "contentText", cmpEqual, "You need to purchase a subscription in order to access Referral Valet. Do you wish to purchase a subscription now?");
But While Running Script, Actual Text is mismatched with Expected Text.
Right click and Click Edit on your object in Name mapping.
Then click on ObjectIdentifier property in right side and click arrow to get into your property as like below