2017-12-15 24 views
0

webdriver 셀레늄을 사용하여 파이어 폭스 브라우저에서 작동하지 아래는 내가 자동화 스크립트에 사용했던 파이어 폭스, 도마뱀 드라이버와 셀레늄 버전입니다 : 파이어 폭스 브라우저 : 52.0 셀레늄 : 3.0.1 게코 드라이버 : 0.11.1마우스를 가져가

은 이 코드는 크롬과 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 \ rust_mozprofile.2bNvQAYH4V01, rotatable = false, timeouts = {암시 적 = 0, 페이지로드 = 300000, 스크립트 = 30000}, pageLoadStrategy = normal, platform = ANY, specificationLevel = 0, moz : accessibilityChecks = false, acceptInsecureCerts = true, browserVersion = 52.0 .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에 대한 버그 보고서가 이미 제출되었습니다.