You should search on web some informations about css selector The first line is trying to test if the tag below exists <ul id="list"><li><a href="#">click me</a></li></ul>
On Jun 4, 6:47 pm, DEEPAK BHATIA <[email protected]> wrote: > 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 <[email protected]> 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-Testin... > > > -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
