Hi,
Am using code module to test my java application. At a certain point in my application i have click a button when the button got highlighted. but ranorex clicks the button before it got highlighted and it was not able to click the button when it got highlighted after 3-4 seconds. And i can solve this issue by adding delay of 3-4 seconds, But i want to know how to click only when the button is highlighted with out adding the delay time.
I want to click the button only when it is highlighted
Thank you.
Click the button when it is highlighted
Click the button when it is highlighted
You do not have the required permissions to view the files attached to this post.
Re: Click the button when it is highlighted
You could use Image based validation to distinguish the two images.
You can also use Wait For - Exists - Highlighted Button.
Then do your click.
You can also use Wait For - Exists - Highlighted Button.
Then do your click.
Re: Click the button when it is highlighted
Hi,
Another thing that might be worth a try is to check the 'Enabled' state of non-highlighted button. Is the button enabled if the button is in non-highlighted mode? If not, then you can add and @enabled='true' to the repo item xpath or wait for enabled==true in your code?
Another thing that might be worth a try is to check the 'Enabled' state of non-highlighted button. Is the button enabled if the button is in non-highlighted mode? If not, then you can add and @enabled='true' to the repo item xpath or wait for enabled==true in your code?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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