Element enabled test in recorded test

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
zshadow
Posts: 28
Joined: Sat Aug 30, 2014 5:17 pm

Element enabled test in recorded test

Post by zshadow » Tue Dec 30, 2014 4:46 pm

Hi,

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

thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3908
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Element enabled test in recorded test

Post by odklizec » Tue Dec 30, 2014 5:23 pm

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

zshadow
Posts: 28
Joined: Sat Aug 30, 2014 5:17 pm

Re: Element enabled test in recorded test

Post by zshadow » Tue Dec 30, 2014 6:02 pm

Hi,

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3908
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Element enabled test in recorded test

Post by odklizec » Wed Dec 31, 2014 12:17 am

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?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration