I'm experiencing some strange behavior with Watir when I want to close the browser.
brs = Watir::Browser.new
=> #<Watir::Browser:0x1035fc1f8 url="about:blank" title="">
brs.close
=> true
brs
NoMethodError: undefined method `closed?' for nil:NilClass
The browser is closed properly (as expected) but after that I'm unable to operate with the class / instance.
Why is that happening?
I am not getting the error message:
Environment: