I need to click if the Uielement is enabled like below.
.
If it is grayed out/opaque/ disabled then it should not click the button like below image
please advise if it is possible with click activity not with image activity.
I need to click if the Uielement is enabled like below.
.
If it is grayed out/opaque/ disabled then it should not click the button like below image
please advise if it is possible with click activity not with image activity.
The selector for both the buttons will be different.
i.e. the disabled one will have a different css or div class id value
you can get the difference in the selector value and use that in the selector of find element and then the result you can use in the if condition and then if enabled u click otherwise u dont.
If you want more details on how to provide me your selector values for both the button types, with parent div class(which will be the differentiating factor), ill explain in detail how you can achieve it
@nadim.warsi
Nope I am not getting parent Id and CSS/Div details in slectors and I can see same selectors for both image/elements,
if you to want try this button click please check and help me with xaml
below is the link for buttonclick javaapp
https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/ButtonDemoProject/ButtonDemo.jnlp
Ok, you are trying to automate a Java app. That requires some additional dlls to be included.
Use this below link to install and setup the access-bridge.
https://docs.oracle.com/javase/accessbridge/2.0.2/setup.htm
Sections to cover:
I have created the workflow, and it is working the way you expect.
*It will work once you do all the above setups.clickJavaImage.xaml (7.9 KB)
You can use javastate attribute in your selector. They differ
enabled,focusable,visible,showing,opaque
vs
focusable,visible,showing,opaque
@loginerror yes I did this before but still no use it is detecting in either cases enabled and dsibaled state.
See if this attached project helps you
ClickTheButton.zip (20.7 KB)
Did you set up the way mentioned? It will work as you expect.
yes I did the setup, your xaml is working fine but I created another xaml as like you, it is not working for me