Indeed, but if your attribute is set to a complex generated value it's not 
so easy to test with just attribute selectors. In my latest case we have a 
hidden input field with a bunch of stuff stored in the value attribute. The 
tests need to get this value and run a number of regexes against it.

On Monday, March 9, 2015 at 3:23:13 PM UTC-5, sri wrote:
>
> Is there a better/lazier way to do this?
>>
>
> Attribute selectors come to mind.
>
>     $t->element_exists('a[href="http://example.com/foo";]')
>       ->element_exists('a[href="http://example.com/bar";]'); 
>
> --
> sebastian
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to