Switching between windows throwing error.
System
- Version: 0.21.0
- Platform: Windows 10 Pro
- Firefox: 62.0
- Selenium: 3.12.0
Testcase
We have default window and there is a link inside the frame once click on the link it opens another tab then we switich using driver.switchTo().window(win); Expected : It should switch Actual: org.openqa.selenium.WebDriverException: java.net.SocketException: Software caused connection abort:
Stacktrace
org.openqa.selenium.WebDriverException: java.net.SocketException: Software caused connection abort: recv failed
Trace-level log
@sukhjinder-sdei the requested trace log hasn't been attached to to this issue. As such there is nothing we can do. So please check https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/TraceLogs.html, and attach it here.
Also please show the code example which triggers this, and the Selenium strack trace.
@whimboo Thanks for your reply, I have resolved this issue.
This issue is arising only when we have switched to frame and then we need to switch to another window.
The solution is first switch back to default content and then move to another window.
Although this need to be improved/fixed.
@sukhjinder-sdei I am also facing this issue.
- My application webpage has 3 JSPs embedded in 3 frames.
- user is making action in second frame and he is getting an alert.
- He accepts the alert. Focus is not returned to the second frame. Instead, It has thrown NoSuchElementException.
Please help on this. geckodriver = 0.22 Firefox = 60.0.1
@hariharanravichandran, your issue is different and as best should be filed as separate issue. As such I will hide your comment on this issue. But before you file a new issue please check with the latest Firefox 63 Beta release if it now works. Because a patch landed for that release which should improve that.
@sukhjinder-sdei I would still be interested to get the trace log as requested above. We have tests which are getting run for each commit, but those don't show this problem. So hopefully your trace logs can help me to understand what's going on. Thanks!
This should just be https://bugzilla.mozilla.org/show_bug.cgi?id=1305822.
Actually this is a duplicate of issue #610.