lib/watir-webdriver/window_switching.rb in watir-webdriver-0.1.9 vs lib/watir-webdriver/window_switching.rb in watir-webdriver-0.2.0.dev
- old
+ new
@@ -99,14 +99,9 @@
url
end
def use(&blk)
- if current?
- yield if block_given?
- return self
- end
-
@driver.switch_to.window(handle, &blk)
self
end
protected