Check if element is grayed out

Hi All,

my below scenario contains to type a product name in search box and check if its greyed and check mark should not be there . If the product is checked its blue . I need to check the grayed ones and check and save ? How can I check if its greyed out?

@dutta.marina

try inddicating element inui explorer when checked and uncheck and see which property differs

cheers

@dutta.marina,

Open Ui Explorer and indicate the Ui Element you are trying to check. It will give you all the attributes/properties of the Ui Element from that you can identify which class or property making it grayed.

Try highlighting non grayed and grayed one. Observe the difference and you should be able to point out which one is the property making it grayed out.

Use this property and use Get Attribute activity. Highlight the Ui Element give the attribute value to extract. On the output of this activity you can take the further decision.

Assumption: Web Application
whenever the gray-out appareance cannot be derrived from style, class … attributes (also check parent elements from the structures) then we can use the following component (available for Windows, Legacy)

with this we can grab CSS Property Values of an UiElement (Webelement). In your case we would suggest to check for the color property (color = Text Color)

When the application is of different type like Desktop, Java… then let us know the type and the application name

@ashokkarale

I dont see any distinct properties for grayed and non grayed.

grayed

non grayed

@dutta.marina,

In this case try the higher level / parent ui elements as well as mentioned by Peter.