2
我使用Behat+Mink+Selenium2
使用CSS选择器使用,以查找元素tr.product:nth-of-type(N)
:第n-的类型(N)不贝哈特+貂工作+ selenium2
$row=$page->find('css',sprintf('tr.product:nth-of-type("%d")', $i));
我也曾尝试
$row=$page->find('css', sprintf('tr[class=product]:nth-of-type("%d")', $i));
但他们都没有工作。有没有其他的选择来选择每一行产品的第n行?
:第n个孩子没有工作过! – Taz
哪个浏览器在控制硒? –
我正在使用firefox – Taz