FF9를 업데이트 한 후 Java 바인딩을 사용하여 Windows 7에서 버전 2.15.0 및 Firefox9 으로 작업 할 때이 오류가 발생했습니다. FF10. 나는 온라인으로 제안했지만 행운을 피하기 위해 네이티브 이벤트를 비활성화하려고했습니다. 추가 솔루션을 온라인으로 검색 한 후 WebDriver를 버전 2.17.0으로 업데이트했습니다. 이 문제는 해결되어 언젠가 같은 문제에 직면하지 않았습니다. 다시 나는 최신 버전의 WebDriver 2.19.0으로 업그레이드했고 문제는 해결되었습니다. 이제 FF10을 11로 업데이트 한 후 같은 문제가 발생합니다. 2.20으로 업그레이드했지만 문제가 널리 보급되었습니다. 아래의 네이티브 이벤트를 비활성화했지만 여전히 오류가 발생합니다.org.openqa.selenium.InvalidElementStateException : 네이티브 상호 작용을 수행 할 수 없습니다 : 네이티브 이벤트 구성 요소를로드 할 수 없습니다.
사용하여 자바 :
org.openqa.selenium.InvalidElementStateException: Cannot perform native interaction: Could not load native events component.
Command duration or timeout: 30.07 seconds
Build info: version: '2.20.0', revision: '16008', time: '2012-02-28 15:00:40'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_31'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java: 170)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java: 123)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java: 438)
at org.openqa.selenium.remote.ExecuteMethod.execute(ExecuteMethod.java: 47)
at org.openqa.selenium.remote.RemoteMouse.mouseMove(RemoteMouse.java: 89)
at org.openqa.selenium.interactions.MoveMouseAction.perform(MoveMouseAction.java: 37)
at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.java: 32)
at org.openqa.selenium.interactions.Actions.perform(Actions.java:349)
at com.requirementsLive.qa.utility.NavigateHelper.navigate_HoverPageTabs(NavigateHelper.java: 49)
내 코드를 NavigateHelper에 :
WebElement hoverMenu = uiHelper.waitForElementPresent(By.id(tabLocator), 10);
Actions hoverAction = new Actions(this.getDriver());
hoverAction.moveToElement(hoverMenu);
hoverAction.perform(); ------> line that throws the error
암의 I를
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("webdriver_enable_native_events", false);
driver = new FirefoxDriver(profile);
스택 트레이스 (나는 요소 위에 마우스를 올려 놓고 마우스를 이동하려고 할 때) 무언가를 놓침? 웹 드라이브 에 영구 수정 사항이 있습니까? 또는 FF 로의 업데이트가있을 때마다 최신 웹 드라이버 (최신 버전이 제공됨)로 업그레이드해야합니까? (업그레이드가 이번에는 작동하지 않았습니다).
감사합니다.
예. 필자는 최신 웹 드라이버가 FF 버전을 지원 한 후에 만 최신 FF로 업데이트하고 있습니다. 감사! – Ziska