- apineda
- Posts : 1
Join date : 2011-01-07
attribute selector failing in assertAttribute
Fri Jan 07, 2011 9:14 pm
So I have a div element with id "lightbox" and attribute "style" with display information depending on whether I need it to be visible or not. I wish to test it's visibility with a test. So,
assertAttribute | lightbox@style | glob:*display*block*
The glob logic I'm unsure of but I do know there are other styles that are inline as well. The real problem is that it's not finding the style attribute of lightbox :S Although if I take away the attribute and "find" lightbox it succeeds. Any ideas?
assertAttribute | lightbox@style | glob:*display*block*
The glob logic I'm unsure of but I do know there are other styles that are inline as well. The real problem is that it's not finding the style attribute of lightbox :S Although if I take away the attribute and "find" lightbox it succeeds. Any ideas?
Re: attribute selector failing in assertAttribute
Fri Jan 28, 2011 7:57 pm
hi,
try to use regular expression instead of that
reg : .*display.*block.*
try to use regular expression instead of that
reg : .*display.*block.*
Permissions in this forum:
You cannot reply to topics in this forum