Skip to content

Commit

Permalink
Add Watir support
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed May 5, 2015
1 parent 5cc9ddf commit da5276e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/angular_webdriver/protractor/protractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def initialize opts={}
@driver = opts[:driver]
raise 'Must supply Selenium::WebDriver' unless @driver

watir = defined?(Watir::Browser) && @driver.is_a?(Watir::Browser)
@driver = watir ? @driver.driver : @driver

# The css selector for an element on which to find Angular. This is usually
# 'body' but if your ng-app is on a subsection of the page it may be
# a subelement.
Expand Down

0 comments on commit da5276e

Please sign in to comment.