Hi,

We are trying to understand the below code written for testing we
guess ul/li tags in the template.

We are not able to understand

$b->checkResponseElement('ul#list li a[href]', 'click me');
$b->checkResponseElement('ul > li', 'click me');
$b->checkResponseElement('ul + li', 'click me');


On 6/4/09, Eno <symb...@gmail.com> wrote:
>
> On Thu, 4 Jun 2009, Vikaash wrote:
>
> > i m going through functional testing and trying to implement it.
> > can sombody help me out of understanding the following in functional
> > testing:-
> >
> > $b->checkResponseElement('ul#list li a[href]', 'click me');
> > $b->checkResponseElement('ul > li', 'click me');
> > $b->checkResponseElement('ul + li', 'click me');
> > $b->checkResponseElement('h1, h2', 'click me');
> > $b->checkResponseElement('a[class$="foo"][href*="bar.html"]', 'my
> > link');
> > $b->checkResponseElement('p:last ul:nth-child(2) li:contains("Some
> > text")');
> >
> > please somebody explain me the above mentioned as there is no example
> > given in symfony document.
>
> Really?
>
> http://www.symfony-project.org/book/1_2/15-Unit-and-Functional-Testing#chapter_15_sub_using_css_selectors
>
>
>
> --
>
>
>
> >
>

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

Reply via email to