2016-11-02 2 views

答えて

4

疑似クラス:animatedは、JQueryライブラリに固有のものであり、有効なCSSセレクタではありません。あなたがそれを使用したい場合は

、その後、executeScriptでページが読み込まjQueryのは、コードを実行していることを確認してください:

int count = (int)((JavascriptExecutor)driver).executeScript(
    "return $(':animated').length;"); 
+1

は、私はいくつかのねじれを持つこの非常に方法について話して、このブログに出会っ... HTTP ://seanglover.com/blog/2012/04/wait-using-selenium-web-driver-with-jquery-animations/ – JeffC

関連する問題