Find lock or unlock

i should find the its LOCK or UNLOCK

its lock if its showing as like in img

if its unlock as like img

uipath95227

How can find ?

1 Like

Hey @meeraa

Just indicate the icon with Ui-Explorer and check the selector props.

There should be one selectors which you helps you identify it, may be a class, id etc.

So you use Element exists with one type to find or two Element exists in Parallel which will provide a boolean result helping you identify the lock or unlock

Hope that helps.

Thanks
#nK

1 Like

Hello @meeraa ,

Use Ui Explorer and try to inspect on both the lock buttons. Then check in selector to identify an attribute which changes based on its state. Usually there should be some flag values which determines the element is locked or unlocked.

If you are still confused share the screenshot of the selectors here.

1 Like

by using click activity??

1 Like

Hey @meeraa

Not really, you can check it using Element Exist activity.

Prior to that just use Ui-Explorer to first uniquely identify the selector for the lock/unlock icon.

Thanks
#nK

1 Like

hi @Nithinkrishna ,

by using element exist it didn’t show any difference. in ui ex.

what should i do now. can you suggest me any another activiry.

1 Like

hi @Rahul_Unnikrishnan

Its showing same for both are showing the same what should i do now.


Hey @meeraa

Using Element Exists is the second step.

First open two instances of UiExplorer and identify locked icon in one explorer and unlocked in the other explorer.

Identify the selector difference post which should be used in Element Exists

Thanks
#nK

Are you not able to find any other attributes?

Is there some fields like name=“Lock” or name=“Unlock” or something similar.
As per my understanding there should be some value which determine these 2 buttons.If you are not able to find the selector for this lock button, would it be possible to select similar element.

For example, if it is locked, then some element is not present and if you unlock it, then you are able to see some elements. Can approach in that way.

Hi @Rahul_Unnikrishnan ,

we are not able to see any change Rahul