On Feb 1, 4:23 am, SMERSH009 <smersh0...@gmail.com> wrote:
> Hi, I'd love some help converting this code to the python equivalent:
>
> private int getCSSCount(String aCSSLocator){
>     String jsScript = "var cssMatches = eval_css(\"%s\",
> window.document);cssMatches.length;";
>     return Integer.parseInt(selenium.getEval(String.format(jsScript,
> aCSSLocator)));
>
> }
>
> http://www.eviltester.com/index.php/2010/03/13/a-simple-getcsscount-h...
>
> Thanks for the help

Maybe?

http://codespeak.net/lxml/dev/cssselect.html

Jon.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to