Seems like a good idea. We should talk to @obra to see if you can get
commit access.
Send pull requests to
https://github.com/primeradiant/Test-WebDriver
On May 22, 2013 8:05 AM, "MARKSTOS via RT" <bug-Test-WebDriver@rt.cpan.org>
wrote:
Show quoted text> Wed May 22 14:05:00 2013: Request 85548 was acted upon.
> Transaction: Ticket created by MARKSTOS
> Queue: Test-WebDriver
> Subject: wish: content_like()
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: MARKSTOS@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=85548 >
>
>
> Thanks for this module, Luke!
>
> Coming from Test::WWW::Mechanize, I'd like a content_like() method.
>
> However, Selenium inefficiently refetches the content each time you use a
> method such as get_body().
>
> In Mechanize I might do this:
>
> $mech->content_like(qr/first/);
> $mech->content_like(qr/second/);
>
> To run more efficiently, I'd this module to support an arrayyref of regexs
> to check:
>
> $TWD->content_like([qr/first/,qr/second/]);
>
> That would call get_body() once instead twice, and run the regex's over
> that.
>
> What do you think?
>