Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watir/watir-webdriver end of file reached (EOFError) While running the script #671

Closed
VeeanB opened this issue Oct 16, 2017 · 31 comments
Closed

Comments

@VeeanB
Copy link

VeeanB commented Oct 16, 2017

Meta -

Watir Version: 6.8.4
Selenium Version: 3.6
Browser Version: Firefox 47
Browser Driver Version: 0.19.0
OS Version: Fedora 22

While running watir

@titusfortner
Copy link
Member

Ah, I believe at the Selenium Conference that Dave said that the latest version of geckodriver does not support Firefox 47. Are you trying to upgrade something in a controlled fashion? If so, use a previous version of geckodriver, if not, use a later version of Firefox. Either way, feel free to reach out to us on the #watir channel in Selenium Slack if you have any questions.

@VeeanB
Copy link
Author

VeeanB commented Oct 17, 2017 via email

@VeeanB
Copy link
Author

VeeanB commented Oct 17, 2017 via email

@titusfortner
Copy link
Member

You only get that error when it is trying to use the the legacy firefox driver and not geckodriver. Since using geckodriver is the default with Watir 6+, I'm going to guess that you have incompatible gems in your gemfile. Can you verify that you do not have watir-classic, common-watir, or watir-webdriver gems installed? All the code you need is in watir gem.

@VeeanB
Copy link
Author

VeeanB commented Oct 17, 2017 via email

@titusfortner
Copy link
Member

Yes, uninstall watir-webdriver gem and remove it from your Gemfile and you should be good.

@VeeanB
Copy link
Author

VeeanB commented Oct 17, 2017 via email

@titusfortner
Copy link
Member

what code are you using to initialize the browser?

@VeeanB
Copy link
Author

VeeanB commented Oct 17, 2017 via email

@titusfortner
Copy link
Member

Oh, yeah, you are passing in marionette: false which keeps it from using geckodriver.
What are you trying to do?
To use marionette: false you need to use an Extended Support Release of Firefox (like 52), to use geckodriver, you need to remove that parameter.

@VeeanB
Copy link
Author

VeeanB commented Oct 17, 2017 via email

@VeeanB
Copy link
Author

VeeanB commented Oct 18, 2017 via email

@titusfortner
Copy link
Member

The documentation from the code itself is here: http://www.rubydoc.info/gems/watir
The User Guides are only somewhat up to date, but they are here: http://watir.com/guides/

@VeeanB
Copy link
Author

VeeanB commented Oct 20, 2017 via email

@VeeanB
Copy link
Author

VeeanB commented Feb 8, 2018

`connect_until_stable': unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError)
Firefox 58
Geckodriver v0.19.1
Watir 6.10.3

@titusfortner
Copy link
Member

You had this working, and now it isn't any more?

@VeeanB
Copy link
Author

VeeanB commented Feb 9, 2018 via email

@VeeanB
Copy link
Author

VeeanB commented Feb 12, 2018 via email

@Rajagopalan-M
Copy link

Rajagopalan-M commented Feb 12, 2018 via email

@VeeanB
Copy link
Author

VeeanB commented Feb 12, 2018 via email

@Rajagopalan-M
Copy link

Rajagopalan-M commented Feb 12, 2018 via email

@Rajagopalan-M
Copy link

Rajagopalan-M commented Feb 12, 2018 via email

@VeeanB
Copy link
Author

VeeanB commented Feb 12, 2018 via email

@Rajagopalan-M
Copy link

Rajagopalan-M commented Feb 12, 2018

@VeeanB

Okay, can you please post that pic of that dialog box?

And you don't have to use xpath while you can use id directly

like

b.select_list(id: 'incident_status').select 'close'

Is your modal_dialog has the select_list in it?

@VeeanB
Copy link
Author

VeeanB commented Feb 12, 2018 via email

@Rajagopalan-M
Copy link

@VeeanB

I don't find any attachment.

And your problem is clear. The element is located but not visible. So you might have had two element with the same id, check that now and you might be interacting with the element which is hidden.

@VeeanB
Copy link
Author

VeeanB commented Feb 12, 2018 via email

@Rajagopalan-M
Copy link

Rajagopalan-M commented Feb 12, 2018

@VeeanB

I am saying the element which is visible is clear but the another element which has the same id is hidden inside and also this hidden element is first element and the element which is visible is the second element or third or fourth and so on. So it says it's invisible.

The image you are sharing is not visible to me. Can you share your screen with me, I will locate that element for you.

@VeeanB
Copy link
Author

VeeanB commented Feb 12, 2018 via email

@VeeanB
Copy link
Author

VeeanB commented Feb 13, 2018 via email

@VeeanB
Copy link
Author

VeeanB commented Feb 13, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants