Display results as :

Rechercher Advanced Search


attribute selector failing in assertAttribute

View previous topic View next topic Go down

attribute selector failing in assertAttribute

Post by apineda on 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?


Posts : 1
Join date : 2011-01-07

Back to top Go down

Re: attribute selector failing in assertAttribute

Post by Adviser on Fri Jan 28, 2011 7:57 pm


try to use regular expression instead of that
reg : .*display.*block.*


Posts : 379
Join date : 2009-07-30
Location : India

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum