Webアプリケーションのテストを設定しようとしています - DockerとPHPUnit 5.7.19にVNCを備えたSelenium standalone 3.2サーバがあります。PHPUnitが存在しない場合に例外をスローする
しかしライン
$this->webDriver->findElement(WebDriverBy::xpath($main_button_xpath))->click();
が時々スロー(時にはそれはない)、それはいけません例外 - 私はVNCを経由して、それを見ていると、ターゲットボタンが見られ、画面上に存在していましたそれはまだ例外を投げた。これらのエラーは、私がSeleniumサーバーを2.57からアップグレードしてから表示され始めました。
改善やデバッグの方法がありますか?
が
非常
ありがとうEDIT:例外The element reference is stale. Either the element is no longer attached to the DOM or the page has been refreshed.
For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '3.2.0', revision: '8c03df6', time: '2017-03-02 09:34:51 -0800'
System info: host: 'dbcbaf52ae71', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-514.10.2.el7.x86_64', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.JUP1ydgC8zCR, rotatable=false, timeouts={implicit=0, page load=300000, script=30000}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=52.0, platformVersion=3.10.0-514.10.2.el7.x86_64, moz:processID=17210, browserName=firefox, platformName=linux}]
Session ID: 47bf2157-c7a8-47ea-a82a-3ab3ddd0ee61
実際の例外メッセージとスタックトレースの例はありますか? – segFault
@segFaultは例外を追加しました –