Web element

Hi,
What is the “relative visibility” attribute for a web element?

Thank you,

Hi @A_Learner

  • The “relative visibility” attribute for a web element is not a standard attribute in HTML or CSS. However, the “visibility” property in CSS specifies whether or not an element is visible.

  • If you set the “visibility” property to “hidden”, the contents of the element will be invisible, but the element stays in its original position and size. If you set the “visibility” property to “collapse”, the element will be hidden and the space it occupied will be removed.


You can use the “Get Attribute” activity to retrieve the value of the “visibility” property of a web element. If the “visibility” property is set to “hidden”, the “Get Attribute” activity will return “0”

Check out the thread

Regards
Gokul

Thank you @Gokul001.

I am trying to use relative visibility because a certain element is getting grayed out after click but visibility stays the same before and after. The only change is with relative visibility attribute. I am trying to find whether using relative visibility is an okay practice.

Thank you,

@A_Learner

Basically it checks the visibility of the element depending on the other elements properly…We can use it reliably

cheers

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