Page 1 of 1

Check whether option is hidden

Posted: Wed Apr 26, 2017 1:42 am
by l2eno
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

Re: Check whether option is hidden

Posted: Tue May 09, 2017 8:17 am
by odklizec
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.