2017-12-15 8 views
0

webdriverをセレンを使用して、Firefoxブラウザのために働いていない以下は、私が自動化スクリプトを使用しているFirefoxの、ヤモリドライバおよびセレンバージョンです: Firefoxブラウザ:52.0 セレン:3.0.1 のGeckoドライバ:0.11.1マウスホバー

は、このコードは、ChromeとIEのブラウザのみFirefoxで問題に直面するために適切に働いていた

Actions action = new Actions(driver.getWebDriver()); 
WebElement mainMenu = driver.findElement(By.xpath("(//*[@class='ciebar__menu-item ciebar__menu-item--has-dropdown medium-4 '])[1]/a")); 
WebElement submenuxpath = driver.findElement(By.xpath("(//*[@class='ciebar__menu-item ciebar__menu-item--has-dropdown medium-4 '])[1]/ul/li[1]/a")); 
action.moveToElement(mainMenu).moveToElement(submenuxpath).click().build().perform(); 

以下は、マウスのホバーアクションのための私のコードです。私はSeleniumとGeckoドライバをアップグレードしてみましたが、ブラウザが起動していないその時です。以下は

POST /セッション/ dee48bec-9a8a-4ae7-92a3-f8fcbd218f5a /のmoveToが知られているコマンドと一致しませんでした表示されているエラーメッセージは情報のビルドです:バージョン: '2.42.2'、リビジョンを ' OS:ホスト: 'PC189896'、IP:'10 .243.169.86 '、os.name:' Windows 7 '、os.arch:' amd64 '、時間:'2014-06-03 10:52:47' 、os.version: '6.1'、java.version: '1.8.0_141'ドライバ情報:org.openqa.selenium.firefox.FirefoxDriver機能[moz:profile = C:\ Users \ 313772 \ AppData \ Local \ Temp \ = 0、page load = 300000、script = 30000}、pageLoadStrategy = normal、platform = ANY、specificationLevel = 0、moz:accessibilityChecks = false、acceptInsecureCerts = true、browserVersion = 52.0、rust_mozprofile.2bNvQAYH4V01、rotatable = false、タイムアウト= .1、platformVersion = 6.1、moz:processID = 11216、browserName = firefox、platformN ame = windows_nt}]セッションID:dee48bec-9a8a-4ae7-92a3-f8fcbd218f5a

助けてください。

+0

バージョン: '2.42.2'はセレンのバージョンのようです(2014-06-03で発行されます)。本当にあなたは本当にSeleniumを使用していますか:3.0.1? Seleniumバージョン2.42.2の場合、ゲッコは必要ありません。しかしFF 52.0との互換性の問題があるかもしれません。 –

答えて

0

/{session id}/movetoエンドポイントはgeckodriverではサポートされていません。このhereについての議論があり、既にバグレポートがSelenium hereに対して提出されています。

関連する問題