Page 1 of 1

Element enabled test in recorded test

Posted: Tue Dec 30, 2014 4:46 pm
by zshadow
Hi,

Is it possible to check that an element is enabled and if so how would you check that, please.

thanks

Re: Element enabled test in recorded test

Posted: Tue Dec 30, 2014 5:23 pm
by odklizec
Sure, you can validate "enabled" attribute (as any other element's attribute). Check the "Validation" paragraph here...
http://www.ranorex.com/support/user-gui ... rding.html

Re: Element enabled test in recorded test

Posted: Tue Dec 30, 2014 6:02 pm
by zshadow
Hi,

I want to wait for the element to become enabled, will the validate wait for the element to become enabled?

Re: Element enabled test in recorded test

Posted: Wed Dec 31, 2014 12:17 am
by odklizec
No, validation will not wait for "enabled" state. What you can do is to add the element in question to repository (don't forget to include the "enabled" attribute to its path). Then in recording use the WaitForExists action, which will pause the test execution until the element with attribute enabled=true is found. This is probably the easiest solution of your problem? More sophisticated way would be using the UserCode with do...while loop and some IFs. Hope this helps?