Test::Mojo feature request

32 views
Skip to first unread message

Денис Ильиных

unread,
Apr 21, 2016, 12:46:28 PM4/21/16
to mojol...@googlegroups.com
Hello
can't find in Test::Mojo something like

$t = $t->element_has('div.hello', 'hello', 'Has hello');

check content by css selector.

i can check only element exist or not

$t = $t->element_exists('div.foo[x=y]');
$t = $t->element_exists_not('div.foo[x=y]');

--
С уважением.
Ильиных Денис
Программист
Компания "GT-Shop.ru"
Телефон: +7(963) 995-7616

Lachlan Deck

unread,
Apr 21, 2016, 4:28:18 PM4/21/16
to mojol...@googlegroups.com
Hi there,

It appears these are what you’re looking for

http://mojolicious.org/perldoc/Test/Mojo#text_is
http://mojolicious.org/perldoc/Test/Mojo#text_isnt
http://mojolicious.org/perldoc/Test/Mojo#text_like
http://mojolicious.org/perldoc/Test/Mojo#text_unlike

cheers,
Lachlan
> --
> 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 mojolicious...@googlegroups.com.
> To post to this group, send email to mojol...@googlegroups.com.
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.

Денис Ильиных

unread,
Apr 22, 2016, 1:57:58 PM4/22/16
to mojol...@googlegroups.com
Thanks )
Reply all
Reply to author
Forward
0 new messages