Requiring 'watir-webdriver' can lead to infinite loops.
mhodgson opened this issue · 1 comments
mhodgson commented
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:
- Update the README to make this clear.
- 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 commented
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.