Check element if enable then click

Check if element is enabled then click else close refresh and check if enable or not. If enabled then click and end.


@BHUSHAN_NAGAONKAR1

I think you need to use enabled property

Check that instead of hasfocus

Cheers

The attribute should be aastate and it should have the value enabled.

@Anil_G @postwick I did try aastate I’m unable to get exact scenario. If aastate is enabled then should click and break else it should close refresh open window and check it it enabled or not. How should I execute it?

@BHUSHAN_NAGAONKAR1

  1. Do while loop with condition just mention as true
  2. Get attribute and get aastate
  3. If condition with check for aastate value equals enabled
  4. then side click on it and break activity
  5. else side do the closing …reopen and navigation to click

@postwick - you are correct

cheers

Use a Retry Scope. Set it to however many times you want to repeat. Inside the Retry Scope…

  • Retry Scope
    – Get Attribute
    – If enabled
    — Then do your process
    — Else close, refresh, and then Throw an exception (to get the Retry to repeat)

Hi @Anil_G /@postwick , sorry for late reply I was not well, I checked the flow.

Even the element was enabled it went to else statement.
Thanks

@BHUSHAN_NAGAONKAR1

May be it is coming as Enabled with E capital…try to check the same

Cheers

Ok, will do and update.

The issue it is unable to identify if The element is disabled. It is unable to validate in Ui explorer. The element aastate is ‘e’.

Is there an alternative to identify if the element is disabled?? CV or something?

@Anil_G it worked thankyou, Thanks for your time and help @Anil_G @postwick .

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.