aslak hellesoy wrote:

 While looking at the Greets of the otherwise brilliant
 http://www.ripcord.co.nz/behaviour/ I got curious about the
 getElementBySelector function by Simon Williamson. Google for it.

http://simon.incutio.com/js/getElementsBySelector.js

Nifty.  So, it would allow something like:

   | verifyText | selector=div.header h1 | My Page Header |

rather than having to use XPath, e.g.

   | verifyText | xpath=//[EMAIL PROTECTED]'header']//h1 | My Page Header |

 Something for Selenium?

Yeah, I think so. CSS selector will usually be less verbose than the XPath equivalent. I suspect it would perform fairly well, too, and our XPath support is fairly slow on some platforms.

--
cheers, MikeW                            http://www.dogbiscuit.org/mdub/

_______________________________________________
Selenium-devel mailing list
Selenium-devel@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel

Reply via email to