Skip to content

Commit af36eaa

Browse files
committed
Update all navigations
1 parent 846a11a commit af36eaa

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

examples/ruby/spec/drivers/options_spec.rb

+13-12
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
RSpec.describe 'Chrome' do
66
describe 'Driver Options' do
77
let(:chrome_location) { driver_finder && ENV.fetch('CHROME_BIN', nil) }
8+
let(:url) { 'https://www.selenium.dev/selenium/web/' }
89

910
it 'page load strategy normal' do
1011
options = Selenium::WebDriver::Options.chrome
1112
options.page_load_strategy = :normal
1213

1314
driver = Selenium::WebDriver.for :chrome, options: options
14-
driver.get('https://www.google.com')
15+
driver.get(url)
1516
driver.quit
1617
end
1718

@@ -20,7 +21,7 @@
2021
options.page_load_strategy = :eager
2122

2223
driver = Selenium::WebDriver.for :chrome, options: options
23-
driver.get('https://www.google.com')
24+
driver.get(url)
2425
driver.quit
2526
end
2627

@@ -29,7 +30,7 @@
2930
options.page_load_strategy = :none
3031

3132
driver = Selenium::WebDriver.for :chrome, options: options
32-
driver.get('https://www.google.com')
33+
driver.get(url)
3334
driver.quit
3435
end
3536

@@ -42,7 +43,7 @@
4243
cloud_options[:name] = my_test_name
4344
options.add_option('cloud:options', cloud_options)
4445
driver = Selenium::WebDriver.for :remote, capabilities: options
45-
driver.get('https://www.google.com')
46+
driver.get(url)
4647
driver.quit
4748
end
4849

@@ -51,7 +52,7 @@
5152
options.accept_insecure_certs = true
5253

5354
driver = Selenium::WebDriver.for :chrome, options: options
54-
driver.get('https://expired.badssl.com/')
55+
driver.get(url)
5556
driver.quit
5657
end
5758

@@ -60,7 +61,7 @@
6061
options.unhandled_prompt_behavior = :accept
6162

6263
driver = Selenium::WebDriver.for :chrome, options: options
63-
driver.get('https://www.google.com')
64+
driver.get(url)
6465
driver.quit
6566
end
6667

@@ -69,7 +70,7 @@
6970
options.set_window_rect = true
7071

7172
driver = Selenium::WebDriver.for :firefox, options: options
72-
driver.get('https://www.google.com')
73+
driver.get(url)
7374
driver.quit
7475
end
7576

@@ -78,7 +79,7 @@
7879
options.strict_file_interactability = true
7980

8081
driver = Selenium::WebDriver.for :chrome, options: options
81-
driver.get('https://www.google.com')
82+
driver.get(url)
8283
driver.quit
8384
end
8485

@@ -87,7 +88,7 @@
8788
options.proxy = Selenium::WebDriver::Proxy.new(http: 'myproxy.com:8080')
8889

8990
driver = Selenium::WebDriver.for :chrome, options: options
90-
driver.get('https://www.google.com')
91+
driver.get(url)
9192
driver.quit
9293
end
9394

@@ -96,7 +97,7 @@
9697
options.timeouts = {implicit: 1}
9798

9899
driver = Selenium::WebDriver.for :chrome, options: options
99-
driver.get('https://www.google.com')
100+
driver.get(url)
100101
driver.quit
101102
end
102103

@@ -105,7 +106,7 @@
105106
options.timeouts = {page_load: 400_000}
106107

107108
driver = Selenium::WebDriver.for :chrome, options: options
108-
driver.get('https://www.google.com')
109+
driver.get(url)
109110
driver.quit
110111
end
111112

@@ -114,7 +115,7 @@
114115
options.timeouts = {script: 40_000}
115116

116117
driver = Selenium::WebDriver.for :chrome, options: options
117-
driver.get('https://www.google.com')
118+
driver.get(url)
118119
driver.quit
119120
end
120121
end

0 commit comments

Comments
 (0)