Converting getCSS Count Code from java to python
Jon Clements
joncle at googlemail.com
Wed Feb 2 07:52:53 EST 2011
On Feb 1, 4:23 am, SMERSH009 <smersh0... at 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.
More information about the Python-list
mailing list