Skip to content

Commit 230ecb9

Browse files
author
AutomatedTester
committed
Add back starting firefox in spec tests
1 parent 573bace commit 230ecb9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb

+11
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@ def create_remote_driver
158158
)
159159
end
160160

161+
def create_firefox_driver
162+
if native_events?
163+
profile = WebDriver::Firefox::Profile.new
164+
profile.native_events = true
165+
166+
WebDriver::Driver.for :firefox, :profile => profile
167+
else
168+
WebDriver::Driver.for :firefox
169+
end
170+
end
171+
161172
def create_chrome_driver
162173
binary = ENV['chrome_binary']
163174
if binary

0 commit comments

Comments
 (0)