Check expected_markup exists in a page multiple times

0 views
Skip to first unread message

Renne Rocha

unread,
Feb 16, 2011, 2:30:51 PM2/16/11
to pycc...@googlegroups.com
Hello,

Is there a way to check if some expected markup is found in a page N times?

The test I am trying to do is something like:
Given
bla bla
When
bla bla bla
Then
I see that current page contains "expected_markup" N times

If there isn't a way to do this way, isn't it an interesting thing
to implement???

Renne Rocha
  http://about.me/rennerocha/

Bernardo Heynemann

unread,
Feb 16, 2011, 2:50:11 PM2/16/11
to pycc...@googlegroups.com, Renne Rocha
You can create a custom action easily. The browser driver provides the
html markup for the page, so you can easily use python code to count
the number of occurrences.

If it is too technical for you, let me know.

In the docs at pyccuracy.org you can read more about custom actions.

Cheers,
Bernardo Heynemann

> --
> You received this message because you are subscribed to the Google Groups "pyccuracy" group.
> To post to this group, send email to pycc...@googlegroups.com.
> To unsubscribe from this group, send email to pyccuracy+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyccuracy?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages