Chrome/Firefox/IE9でうまく動作するJava-Seleniumを使用した自動テストがあります。私はSelenium 2.47を持っていて、適切なドライバーのexeを使っています。最近、私はIE 11にアップグレードしていたし、それ以来、私のテストは、次の例外で失敗している:IE 11でセレンコードが動作しない
*org.openqa.selenium.NoSuchWindowException: Unable to find elements on closed window (WARNING: The server did not provide any stacktrace information)*
Command duration or timeout: 31 milliseconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: os.name: 'Windows 7', os.arch: 'amd64', java.version: '1.8.0_45'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, pageLoadStrategy=normal, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:13059/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]
*** Element info: {Using=name, value=username}
誰かがこの上で私を導くことはできますか?
ログインページ自体に失敗しています。
詳細情報が必要です。 –
これはこの例外がスローされる行です:webElements = wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(byType)); – amit