Skip to content

Commit 1dffc78

Browse files
committed
[rb] Add code sample for firefox headless
1 parent 822339e commit 1dffc78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/ruby/spec/browsers/firefox_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@
3636
injected = driver.find_element(id: 'webextensions-selenium-example')
3737
expect(injected.text).to eq 'Content injected by webextensions-selenium-example'
3838
end
39+
40+
it 'add arguments' do
41+
options = Selenium::WebDriver::Options.firefox(args: ['-headless'])
42+
43+
@driver = Selenium::WebDriver.for :firefox, options: options
44+
@driver.get('https://www.google.com')
45+
end
3946
end

0 commit comments

Comments
 (0)