File tree Expand file tree Collapse file tree
rb/spec/integration/selenium/webdriver/firefox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ module Selenium
2323 module WebDriver
2424 module Firefox
2525 describe Driver , exclusive : { browser : :firefox } do
26+ let ( :extension ) { '../../../../../../third_party/firebug/favourite_colour-1.1-an+fx.xpi' }
27+
2628 describe '#print_options' do
2729 let ( :magic_number ) { 'JVBER' }
2830
@@ -52,8 +54,6 @@ module Firefox
5254 end
5355
5456 describe '#install_addon' do
55- let ( :extension ) { '../../../../../../third_party/firebug/favourite_colour-1.1-an+fx.xpi' }
56-
5757 it 'with path as parameter' do
5858 ext = File . expand_path ( extension , __dir__ )
5959 driver . install_addon ( ext )
@@ -67,8 +67,8 @@ module Firefox
6767
6868 describe '#uninstall_addon' do
6969 it 'uninstalls based on id' do
70- ext = File . expand_path ( '../../../../../../third_party/firebug/favourite_colour-1.1-an+fx.xpi' , __dir__ )
71- id = driver . install_addon ( path : ext )
70+ ext = File . expand_path ( extension , __dir__ )
71+ id = driver . install_addon ( ext )
7272 driver . uninstall_addon ( id )
7373 end
7474 end
You can’t perform that action at this time.
0 commit comments