Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Requiring 'watir-webdriver' can lead to infinite loops. #11

Open
mhodgson opened this issue Oct 8, 2013 · 1 comment
Open

Requiring 'watir-webdriver' can lead to infinite loops. #11

mhodgson opened this issue Oct 8, 2013 · 1 comment

Comments

@mhodgson
Copy link

mhodgson commented Oct 8, 2013

If you require 'watir-webdriver' explicitly in you tests, it may cause Watir::Browser.new to lead to an infinite loop. I suggest two things:

  1. Update the README to make this clear.
  2. Eventually refactor the code to not redefine the initialize method based on what value has been set for the driver. A fairly simple inheritance structure should help here.
@jarmo
Copy link
Member

jarmo commented Oct 10, 2013

Additional conversation about this topic at watir/watir@4e2fa0a

I'm against updating README, because this still seems more like a bug to me than a feature which should be documented.

Watir should detect if loading has been already done and skip that phase if needed.

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

No branches or pull requests

2 participants