Using NOT in Recording

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 67
Joined: Fri Nov 26, 2010 3:39 pm

Using NOT in Recording

Post by anja » Tue Apr 30, 2013 3:28 pm


Within my Application, the actual power-mode of the PC is displayed. Now I wanted to check if the correct symbol is visible.

There are 2 Elements in the Repository:
- Battery-Indicator
- Power-Indicator

I wanted to use the recording to validate on each item if it is visible.

I created a variable within the recording "batteryPowered". This variable gets true or false as value.
Now I wanted to check the visible state of both:
Validate - AttributeEqual - Visible - $batteryPowered - Battery-Indicator --> This is working as expected

Is it possible to make the same for the Power-Indicator without creating a second variable using something like "NOT $batteryPowered"?

Thank you in advance...


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Using NOT in Recording

Post by Support Team » Thu May 02, 2013 2:49 pm


Thank you for your posting.

You would need to create a separate variable for Power-Indicator if you want to use it in a Recording module.
Another approach would be to write User Code to achieve this.

Markus (T)