Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FireFoxで正常に実行されているSeleniumWebdriver/TestNGテストがいくつかあります。テストの実行を見ている場合は問題ありません。しかし、その間に別のブラウザー (Skype など) の使用を開始し、テストを実行している FireFox ウィンドウに戻ると、何らかのエラーが発生したことが常にわかります。記入済み。
これはなぜ起こり、どうすれば防ぐことができますか?
driver.switchTo().window(driver.getWindowHandle());フォームに記入するときに使用してみてください。
driver.switchTo().window(driver.getWindowHandle());