サファリ10.0.1 MacOSのシエラセレン3.0.1()
Codeceptionコマンド実行:セレン3.0.1でSafariで受け入れテストで
$I->waitForElementVisible(['css' => 'input[type=text][id=UserUsername]'], 30);
を私が受け取りますエラー。障害発生時のスクリーンショットには、問題の要素が明確に表示されます。同じテスト/コマンドは、FirefoxとChromeの両方で成功しています。エラー:私はセレン2.53.1とのSafari/Firefoxの/ Chromeで同じテスト/コマンドを実行すると
Screenshot saved to /Applications/MAMP/htdocs/AutomatedTests/tests/_output/debug/FAILED1479307207.png
Unable to retrieve Selenium logs : The command 'GET /session/9BC56414-8934-4315-9293-B6E99720E318/log/types' is not implemented.
Command duration or timeout: 3 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: 'Cosettes-MacBook-Pro.local', ip: '10.0.1.75', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.1', java.version: '1.8.0_101'
Driver info: org.openqa.selenium.safari.SafariDriver
Capabilities [{applicationCacheEnabled=true, rotatable=false, databaseEnabled=true, handlesAlerts=true, version=12602.2.14.0.5, cleanSession=true, platform=MAC, nativeEvents=true, locationContextEnabled=false, webStorageEnabled=true, browserName=safari, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 9BC56414-8934-4315-9293-B6E99720E318
Screenshot and page source were saved into '/Applications/MAMP/htdocs/AutomatedTests/tests/_output/' dir
ERROR
それは何の問題を持つ要素を検索します。
フォーラムを通過するときに私が見つけられないこのタイプのロケータに関する既知の問題はありますか?誰でもこの作品を作る方法の提案がありますか?
更新12-01-16:これは、現在、ロケータよりもwaitForElementVisible()コマンドで問題が多いようです。コマンドを$I->waitForElement(['css' => 'input[type=text][id=UserUsername]'], 30);
に変更すると、次のwaitForElementVisible()コマンドまでテストが正常に進みます。
まったく同じ問題ではありませんが、それはあなたに役立つかもしれません。 https://github.com/SeleniumHQ/selenium/issues/2680 – cyildirim
ありがとうございますが、私はそうは思わないです。私はその問題/修正を読んだ。 SafariDriverに接続できないという問題があります。私はその時点を十分に過ぎている。 – CosetteN
@CosetN解決策はまだ見つかりましたか?私は同じ問題を抱えている。 – Isengo