I am currently trying to automate a web page process, and I am struggling with the selector of one button.
The button is present on an overlay, and the Robot should only click the button that is visible on the overlay. I noticed that the button’s selector still seems to “exist” when the overlay has been closed, and so sometimes the Robot clicks in white spaces on the overlay instead of the visible button, which I guess are the other “ghost” buttons cached somewhere else the web page.
After using Get Attribute activity, I know that when the button is visible on the overlay and that the Robot should click it, its visibility attribute is 0. When I’ve closed the overlay, its visibility attribute value is 1.
And so, I want to know how could I incorporate the visibility attribute value of a button to its selector? Would I simply add visibility = ‘1’ within the selector?
Thank you very much!