How to validate : Object Identification and Technologies

How to validate

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

How to validate

Postby omayer » Sat Jul 16, 2011 2:53 am

How to validate object not found then write to report as failed. i just tried various code snippet from forum but not able to make it work.
Thank you,
Beginner
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: How to validate

Postby Support Team » Sat Jul 16, 2011 4:21 pm

Just add a "NotExists" validation in the Recorder. See following topic in the Ranorex User Guide:
http://www.ranorex.com/support/user-gui ... rding.html

Alternatively, in code you can use the Validate.NotExists method on the repository item info object as explained in the Ranorex User Guide code examples:
http://www.ranorex.com/support/user-gui ... html#c3203
The last argument (bool exceptionOnFail) of that method lets you specify whether Ranorex will throw an exception or continue execution if the validation fails.

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests