0

selenium 3 beta 2을 사용하는 경우 Firefox 브라우저에서 드롭 다운을 선택할 수 없습니다. 나는 점점 해요 :firefox 브라우저에서 Selenium 버전 3.0.0-beta2에 대한 드롭 다운을 선택할 수 없습니다.

element not visible exception

을 여기에 몇 가지 세부 사항을 더 :

Browser Page

StackError : 크롬 브라우저, 그것은 완벽하게 작동 괜찮

org.openqa.selenium.ElementNotVisibleException: Element is not visible (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 15 milliseconds Build info: version: 'unknown', revision: '2aa21c1', time: '2016-08-02 14:59:43 -0700' System info: host: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_91' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, appBuildId=20160817112116, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=48.0.1, platformVersion=10.0, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop}] Session ID: 1bdaa5b9-a2b8-47aa-81b8-5516c39462a7 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:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:683) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:319) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:85) at org.openqa.selenium.support.ui.Select.setSelected(Select.java:324) at org.openqa.selenium.support.ui.Select.selectByValue(Select.java:201) at DriverTest.test(DriverTest.java:45)

동안.

파이어 폭스 브라우저에 문제가 있다고 생각합니다. 현재 나는 firefox가 48.0.2으로 업데이트 될 수 있음을 알 수 있습니다. 아직이 문제가 해결 되었습니까?

+0

처럼해야 WebDriverWait 사용하지 않는 경우가 WebDriverWait를 사용한다? –

+0

문제는 Firefox 브라우저에서 발생합니다. 크롬의 경우 잘 작동합니다. 새로운 Select (driver.findElement (By.name ("country"))). selectByVisibleText ("India"); – Ankit

+0

다음 답변을 따르십시오 http://stackoverflow.com/questions/39224373/unable-to-select-dropdown-option-after-updating-jar-files-to-selenium-3-0/39228389#39228389 .. 도움이되기를 바랍니다. .. –

답변

0

당신이 it.With 코드 당신이 시도 코드를 공유 할 수

Select sel = new Select(new WebDriverWait(driver,30).until(ExpectedConditions.visibilityOfElementLocated(By.name("country")))); 
    sel.selectByVisibleText("Albania"); 
+0

new select (driver.findElement (By.name ("country"))) selectByVisibleText ("India"); \ n 위의 코드는 Chrome에서 작동하지만 Firefox에서는 작동하지 않습니다 ...이 문제는 Firefox와 Selenium 3 베타 2에서 발생한다고 생각합니다. – Ankit