Skip to content

Commit a6b704a

Browse files
authored
fix ruby linting issues (SeleniumHQ#1380)
* fix ruby linting issues * change timeouts in wait examples from 1 second to 2 [deploy site]
1 parent f9c6d90 commit a6b704a

File tree

14 files changed

+56
-51
lines changed

14 files changed

+56
-51
lines changed

.github/workflows/ruby-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Ruby
3737
uses: ruby/setup-ruby@v1
3838
with:
39-
ruby-version: 2.7
39+
ruby-version: 3.0
4040
bundler-cache: true
4141
- name: Install Gems
4242
working-directory: ./examples/ruby

examples/dotnet/SeleniumDocs/Waits/WaitsTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void Sleep()
3636
[TestMethod]
3737
public void Implicit()
3838
{
39-
driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
39+
driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(2);
4040

4141
driver.Url = "https://www.selenium.dev/selenium/web/dynamic.html";
4242
driver.FindElement(By.Id("adder")).Click();
@@ -51,7 +51,7 @@ public void Explicit()
5151
{
5252
driver.Url = "https://www.selenium.dev/selenium/web/dynamic.html";
5353
IWebElement revealed = driver.FindElement(By.Id("revealed"));
54-
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(1));
54+
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(2));
5555

5656
driver.FindElement(By.Id("reveal")).Click();
5757
wait.Until(d => revealed.Displayed);
@@ -65,7 +65,7 @@ public void ExplicitOptions()
6565
{
6666
driver.Url = "https://www.selenium.dev/selenium/web/dynamic.html";
6767
IWebElement revealed = driver.FindElement(By.Id("revealed"));
68-
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(1))
68+
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(2))
6969
{
7070
PollingInterval = TimeSpan.FromMilliseconds(300),
7171
};

examples/java/src/test/java/dev/selenium/waits/WaitsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void sleep() throws InterruptedException {
4242

4343
@Test
4444
public void implicit() {
45-
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(1));
45+
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(2));
4646
driver.get("https://www.selenium.dev/selenium/web/dynamic.html");
4747
driver.findElement(By.id("adder")).click();
4848

@@ -55,7 +55,7 @@ public void implicit() {
5555
public void explicit() {
5656
driver.get("https://www.selenium.dev/selenium/web/dynamic.html");
5757
WebElement revealed = driver.findElement(By.id("revealed"));
58-
Wait<WebDriver> wait = new WebDriverWait(driver, Duration.ofSeconds(1));
58+
Wait<WebDriver> wait = new WebDriverWait(driver, Duration.ofSeconds(2));
5959

6060
driver.findElement(By.id("reveal")).click();
6161
wait.until(d -> revealed.isDisplayed());
@@ -69,7 +69,7 @@ public void explicitWithOptions() {
6969
driver.get("https://www.selenium.dev/selenium/web/dynamic.html");
7070
WebElement revealed = driver.findElement(By.id("revealed"));
7171
Wait<WebDriver> wait = new FluentWait<>(driver)
72-
.withTimeout(Duration.ofSeconds(1))
72+
.withTimeout(Duration.ofSeconds(2))
7373
.pollingEvery(Duration.ofMillis(300))
7474
.ignoring(ElementNotInteractableException.class);
7575

examples/python/tests/waits/test_waits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ def test_sleep(driver):
1717
driver.get('https://www.selenium.dev/selenium/web/dynamic.html')
1818
driver.find_element(By.ID, "adder").click()
1919

20-
time.sleep(1)
20+
time.sleep(2)
2121
added = driver.find_element(By.ID, "box0")
2222

2323
assert added.get_dom_attribute('class') == "redbox"
2424

2525

2626
def test_implicit(driver):
27-
driver.implicitly_wait(1)
27+
driver.implicitly_wait(2)
2828
driver.get('https://www.selenium.dev/selenium/web/dynamic.html')
2929
driver.find_element(By.ID, "adder").click()
3030

examples/ruby/.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml
33
require: rubocop-rspec
44

55
AllCops:
6-
TargetRubyVersion: 2.7.0
6+
TargetRubyVersion: 3.0
77
NewCops: enable
88
SuggestExtensions:
99
rubocop-rake: false

examples/ruby/.rubocop_todo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ AllCops:
1111
- 'spec/virtual_authenticator/virtual_authenticator_spec.rb'
1212
- 'spec/hello/hello_selenium_spec.rb'
1313
- 'spec/getting_started/open_browser_spec.rb'
14+
15+
RSpec/NoExpectationExample:
16+
Enabled: false
17+
18+
RSpec/InstanceVariable:
19+
Enabled: false

examples/ruby/spec/actions_api/mouse_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
.perform
101101

102102
rect = mouse_tracker.rect
103-
center_x = rect.width/2
104-
center_y = rect.height/2
103+
center_x = rect.width / 2
104+
center_y = rect.height / 2
105105
x_coord, y_coord = driver.find_element(id: 'relative-location').text.split(',').map(&:to_i)
106106

107107
expect(x_coord).to be_within(1).of(center_x + 8)

examples/ruby/spec/browsers/edge_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
@driver = Selenium::WebDriver.for :edge, options: options
1616
@driver.get('https://www.google.com')
1717
end
18-
end
18+
end

examples/ruby/spec/support/select_list_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require 'spec_helper'
44

55
RSpec.describe 'Chrome' do
6-
76
let(:driver) { start_session }
87

98
before do
@@ -18,13 +17,13 @@
1817
four_element = driver.find_element(css: 'option[value=four]')
1918
count_element = driver.find_element(css: "option[value='still learning how to count, apparently']")
2019

21-
select.select_by(:text,'Four')
20+
select.select_by(:text, 'Four')
2221
expect(four_element).to be_selected
2322

24-
select.select_by(:value,'two')
23+
select.select_by(:value, 'two')
2524
expect(two_element).to be_selected
2625

27-
select.select_by(:index,3)
26+
select.select_by(:index, 3)
2827
expect(count_element).to be_selected
2928
end
3029

examples/ruby/spec/waits/waits_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626

2727
it 'implicit' do
28-
driver.manage.timeouts.implicit_wait = 1
28+
driver.manage.timeouts.implicit_wait = 2
2929
driver.get 'https://www.selenium.dev/selenium/web/dynamic.html'
3030
driver.find_element(id: 'adder').click
3131

@@ -51,7 +51,7 @@
5151
revealed = driver.find_element(id: 'revealed')
5252
errors = [Selenium::WebDriver::Error::NoSuchElementError,
5353
Selenium::WebDriver::Error::ElementNotInteractableError]
54-
wait = Selenium::WebDriver::Wait.new(timeout: 1,
54+
wait = Selenium::WebDriver::Wait.new(timeout: 2,
5555
interval: 0.3,
5656
ignore: errors)
5757

website_and_docs/content/documentation/webdriver/support_features/select_lists.en.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Note that as of Selenium 4.5, you can't create a `Select` object if the `<select
6969
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L23-L24" >}}
7070
{{< /tab >}}
7171
{{< tab header="Ruby" >}}
72-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L14-L15" >}}
72+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L13-L14" >}}
7373
{{< /tab >}}
7474
{{< tab header="JavaScript" >}}
7575
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L18-L19" >}}
@@ -98,7 +98,7 @@ Get a list of all options in the `<select>` element:
9898
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L52" >}}
9999
{{< /tab >}}
100100
{{< tab header="Ruby" >}}
101-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L41" >}}
101+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L40" >}}
102102
{{< /tab >}}
103103
{{< tab header="JavaScript" >}}
104104
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L45" >}}
@@ -125,7 +125,7 @@ zero or many elements.
125125
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L56" >}}
126126
{{< /tab >}}
127127
{{< tab header="Ruby" >}}
128-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L44" >}}
128+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L43" >}}
129129
{{< /tab >}}
130130
{{< tab header="JavaScript" >}}
131131
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L51" >}}
@@ -156,7 +156,7 @@ Select the option based on its visible text
156156
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L30" >}}
157157
{{< /tab >}}
158158
{{< tab header="Ruby" >}}
159-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L21" >}}
159+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L20" >}}
160160
{{< /tab >}}
161161
{{< tab header="JavaScript" >}}
162162
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L25" >}}
@@ -181,7 +181,7 @@ Select the option based on its value attribute
181181
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L33" >}}
182182
{{< /tab >}}
183183
{{< tab header="Ruby" >}}
184-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L24" >}}
184+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L23" >}}
185185
{{< /tab >}}
186186
{{< tab header="JavaScript" >}}
187187
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L28" >}}
@@ -206,7 +206,7 @@ Select the option based on its position in the list
206206
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L36" >}}
207207
{{< /tab >}}
208208
{{< tab header="Ruby" >}}
209-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L27" >}}
209+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L26" >}}
210210
{{< /tab >}}
211211
{{< tab header="JavaScript" >}}
212212
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L31" >}}
@@ -240,7 +240,7 @@ Options with a `disabled` attribute may not be selected.
240240
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L77" >}}
241241
{{< /tab >}}
242242
{{< tab header="Ruby" >}}
243-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L63-L65" >}}
243+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L62-L64" >}}
244244
{{< /tab >}}
245245
{{< tab header="JavaScript" >}}
246246
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L73-L76" >}}
@@ -266,7 +266,7 @@ You can repeat these methods for each element you want to select.
266266
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L65" >}}
267267
{{< /tab >}}
268268
{{< tab header="Ruby" >}}
269-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L53" >}}
269+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L52" >}}
270270
{{< /tab >}}
271271
{{< tab header="JavaScript" >}}
272272
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L63" >}}

website_and_docs/content/documentation/webdriver/support_features/select_lists.ja.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Note that as of Selenium 4.5, you can't create a `Select` object if the `<select
6969
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L23-L24" >}}
7070
{{< /tab >}}
7171
{{< tab header="Ruby" >}}
72-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L14-L15" >}}
72+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L13-L14" >}}
7373
{{< /tab >}}
7474
{{< tab header="JavaScript" >}}
7575
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L18-L19" >}}
@@ -98,7 +98,7 @@ Get a list of all options in the `<select>` element:
9898
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L52" >}}
9999
{{< /tab >}}
100100
{{< tab header="Ruby" >}}
101-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L41" >}}
101+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L40" >}}
102102
{{< /tab >}}
103103
{{< tab header="JavaScript" >}}
104104
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L45" >}}
@@ -125,7 +125,7 @@ zero or many elements.
125125
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L56" >}}
126126
{{< /tab >}}
127127
{{< tab header="Ruby" >}}
128-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L44" >}}
128+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L43" >}}
129129
{{< /tab >}}
130130
{{< tab header="JavaScript" >}}
131131
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L51" >}}
@@ -156,7 +156,7 @@ Select the option based on its visible text
156156
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L30" >}}
157157
{{< /tab >}}
158158
{{< tab header="Ruby" >}}
159-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L21" >}}
159+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L20" >}}
160160
{{< /tab >}}
161161
{{< tab header="JavaScript" >}}
162162
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L25" >}}
@@ -181,7 +181,7 @@ Select the option based on its value attribute
181181
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L33" >}}
182182
{{< /tab >}}
183183
{{< tab header="Ruby" >}}
184-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L24" >}}
184+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L23" >}}
185185
{{< /tab >}}
186186
{{< tab header="JavaScript" >}}
187187
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L28" >}}
@@ -206,7 +206,7 @@ Select the option based on its position in the list
206206
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L36" >}}
207207
{{< /tab >}}
208208
{{< tab header="Ruby" >}}
209-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L27" >}}
209+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L26" >}}
210210
{{< /tab >}}
211211
{{< tab header="JavaScript" >}}
212212
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L31" >}}
@@ -240,7 +240,7 @@ Options with a `disabled` attribute may not be selected.
240240
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L77" >}}
241241
{{< /tab >}}
242242
{{< tab header="Ruby" >}}
243-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L63-L65" >}}
243+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L62-L64" >}}
244244
{{< /tab >}}
245245
{{< tab header="JavaScript" >}}
246246
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L73-L76" >}}
@@ -266,7 +266,7 @@ You can repeat these methods for each element you want to select.
266266
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L65" >}}
267267
{{< /tab >}}
268268
{{< tab header="Ruby" >}}
269-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L53" >}}
269+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L52" >}}
270270
{{< /tab >}}
271271
{{< tab header="JavaScript" >}}
272272
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L63" >}}

website_and_docs/content/documentation/webdriver/support_features/select_lists.pt-br.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Note that as of Selenium 4.5, you can't create a `Select` object if the `<select
7070
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L23-L24" >}}
7171
{{< /tab >}}
7272
{{< tab header="Ruby" >}}
73-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L14-L15" >}}
73+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L13-L14" >}}
7474
{{< /tab >}}
7575
{{< tab header="JavaScript" >}}
7676
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L18-L19" >}}
@@ -99,7 +99,7 @@ Get a list of all options in the `<select>` element:
9999
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L52" >}}
100100
{{< /tab >}}
101101
{{< tab header="Ruby" >}}
102-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L41" >}}
102+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L40" >}}
103103
{{< /tab >}}
104104
{{< tab header="JavaScript" >}}
105105
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L45" >}}
@@ -126,7 +126,7 @@ zero or many elements.
126126
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L56" >}}
127127
{{< /tab >}}
128128
{{< tab header="Ruby" >}}
129-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L44" >}}
129+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L43" >}}
130130
{{< /tab >}}
131131
{{< tab header="JavaScript" >}}
132132
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L51" >}}
@@ -157,7 +157,7 @@ Select the option based on its visible text
157157
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L30" >}}
158158
{{< /tab >}}
159159
{{< tab header="Ruby" >}}
160-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L21" >}}
160+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L20" >}}
161161
{{< /tab >}}
162162
{{< tab header="JavaScript" >}}
163163
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L25" >}}
@@ -182,7 +182,7 @@ Select the option based on its value attribute
182182
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L33" >}}
183183
{{< /tab >}}
184184
{{< tab header="Ruby" >}}
185-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L24" >}}
185+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L23" >}}
186186
{{< /tab >}}
187187
{{< tab header="JavaScript" >}}
188188
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L28" >}}
@@ -207,7 +207,7 @@ Select the option based on its position in the list
207207
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L36" >}}
208208
{{< /tab >}}
209209
{{< tab header="Ruby" >}}
210-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L27" >}}
210+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L26" >}}
211211
{{< /tab >}}
212212
{{< tab header="JavaScript" >}}
213213
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L31" >}}
@@ -241,7 +241,7 @@ Options with a `disabled` attribute may not be selected.
241241
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L77" >}}
242242
{{< /tab >}}
243243
{{< tab header="Ruby" >}}
244-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L63-L65" >}}
244+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L62-L64" >}}
245245
{{< /tab >}}
246246
{{< tab header="JavaScript" >}}
247247
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L73-L76" >}}
@@ -267,7 +267,7 @@ You can repeat these methods for each element you want to select.
267267
{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Support/SelectListTest.cs#L65" >}}
268268
{{< /tab >}}
269269
{{< tab header="Ruby" >}}
270-
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L53" >}}
270+
{{< gh-codeblock path="/examples/ruby/spec/support/select_list_spec.rb#L52" >}}
271271
{{< /tab >}}
272272
{{< tab header="JavaScript" >}}
273273
{{< gh-codeblock path="/examples/javascript/test/select/selectListTest.spec.js#L63" >}}

0 commit comments

Comments
 (0)