I can not validate the text visibility
Posted: Mon Jul 22, 2019 4:56 pm
Hello all,
I am a new to Renorex Studio and still use evaluation copy to understand how I can employ this product to test WPF Windows application.
Here is the challenge I am facing with.
In the application, there are collapsible menus and I need to navigate through them to ensure that everything works as expected. These menus remember their status (expanded or hidden) and I need to find out their current status first. Then, depending on the status, click on desired menu to expand it and do my testing.
Probably, as the first step, I will need to do the validation. As per attached screenshot, I am trying to validate that header “Date/Time Format” is visible and based on result to decide on clicking the button whether to expand the menu or not. I used Tracker to identify this “Date/Time Format” element and then I build the Validation rule.
So far, I tried to use Exists method and AttributeContains method with Caption of “Date/Time Format”. These two methods always report positive result independently whether “Date/Time Format” is visible or not.
When I use AttributeRegex method with Visible setting of “Date/Time Format” (see other screenshot), it always reports negative result independently whether “Date/Time Format” is visible or not. So, what I am doing wrong? How can I find out the current status of these menus (and past it to the Condition)?
Thank you in advance for your responses.
I am a new to Renorex Studio and still use evaluation copy to understand how I can employ this product to test WPF Windows application.
Here is the challenge I am facing with.
In the application, there are collapsible menus and I need to navigate through them to ensure that everything works as expected. These menus remember their status (expanded or hidden) and I need to find out their current status first. Then, depending on the status, click on desired menu to expand it and do my testing.
Probably, as the first step, I will need to do the validation. As per attached screenshot, I am trying to validate that header “Date/Time Format” is visible and based on result to decide on clicking the button whether to expand the menu or not. I used Tracker to identify this “Date/Time Format” element and then I build the Validation rule.
So far, I tried to use Exists method and AttributeContains method with Caption of “Date/Time Format”. These two methods always report positive result independently whether “Date/Time Format” is visible or not.
When I use AttributeRegex method with Visible setting of “Date/Time Format” (see other screenshot), it always reports negative result independently whether “Date/Time Format” is visible or not. So, what I am doing wrong? How can I find out the current status of these menus (and past it to the Condition)?
Thank you in advance for your responses.