How to locate an element on a mask layer?

22 views
Skip to first unread message

Christian

unread,
May 17, 2013, 10:28:26 PM5/17/13
to watir-...@googlegroups.com
After I clicked a button,then the site gives a floating mask layer. I tried to find an element on the mask layer using class,like (:class=>"blabla"),but it failed.
What should I do to locate the element?
1.png

Alex Rodionov

unread,
May 18, 2013, 9:21:04 AM5/18/13
to watir-...@googlegroups.com
It is very difficult to help you unless you provide some actual Ruby and HTML code.

Archit Dey

unread,
Jul 2, 2013, 10:59:04 AM7/2/13
to watir-...@googlegroups.com
Hi Christian,

Generally these kinds of layers come up inside a div element. Try this,

@browser.div(:class=>#Give the class of the div).#reference to element you are trying to access inside this layer

Thanks,
Archit
Reply all
Reply to author
Forward
0 new messages