Check whether option is hidden

Ranorex Studio, Spy, Recorder, and Driver.
l2eno
Posts: 1
Joined: Wed Apr 26, 2017 1:30 am

Check whether option is hidden

Post by l2eno » Wed Apr 26, 2017 1:42 am

Hello community,

I've just experienced Ranorex and I am curious to get more into it. I already tried to create a Testscript to prove an application against functional requirements.

In addition I've had a closer look on the videos provided online but there are stilöl a few things I'd like to know.

Ho can i check whether an option within the menu is shown or hidden. For example in the firefox browser I'd like to test whether the option to search for add-ons is shown or not.
The used should not be able to look for add-ons by himself and therefore I need to check whether this option will be hidden. How could I create a script that tests this case?

I do hope you can help me with that!
Kind Regards

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

Re: Check whether option is hidden

Post by odklizec » Tue May 09, 2017 8:17 am

Hi,

I don't have a clue how to hide a plugin search box in FF (is there a parameter/option to do that?). Anyway, what I would do is to track the search box (while available) to store its xpath in repo. Then simply use Validate Not Exists action/method to validate its "non-existence" during test.

Eventually, you can validate if the attribute "Hidden" for given xpath is True or not. True means the search box is hidden.
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