watir/watir_meta

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

mhodgson opened this issue · 1 comments

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.

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.