geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Switching between windows throwing error.

Open sukhjinder-sdei opened this issue 8 years ago • 7 comments

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 avatar Sep 11 '18 13:09 sukhjinder-sdei

@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 avatar Sep 13 '18 14:09 whimboo

@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 avatar Sep 17 '18 04:09 sukhjinder-sdei

@sukhjinder-sdei I am also facing this issue.

  1. My application webpage has 3 JSPs embedded in 3 frames.
  2. user is making action in second frame and he is getting an alert.
  3. 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 avatar Sep 17 '18 14:09 hariharanravichandran

@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.

whimboo avatar Sep 18 '18 06:09 whimboo

@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!

whimboo avatar Sep 18 '18 06:09 whimboo

This should just be https://bugzilla.mozilla.org/show_bug.cgi?id=1305822.

whimboo avatar Nov 20 '18 13:11 whimboo

Actually this is a duplicate of issue #610.

whimboo avatar Oct 23 '20 09:10 whimboo