Skip to content

Commit 96860ba

Browse files
committed
Fix tests
1 parent f720c45 commit 96860ba

File tree

7 files changed

+11
-55
lines changed

7 files changed

+11
-55
lines changed

Diff for: examples/ruby/Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ gem 'rake', '~> 13.0'
77
gem 'rspec', '~> 3.0'
88
gem 'rubocop', '~> 1.35'
99
gem 'rubocop-rspec', '~> 3.0'
10-
gem 'selenium-devtools', '= 0.131.0'
11-
gem 'selenium-webdriver', '= 4.27.0'
10+
gem 'selenium-devtools', '= 0.134.0'
11+
gem 'selenium-webdriver', '= 4.30.0'

Diff for: examples/ruby/spec/actions_api/keys_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
expect(text_field.attribute('value')).to eq 'Selenium!'
5757
end
5858

59-
it 'copy and paste', except: {browser: :chrome,
60-
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4264'} do
59+
it 'copy and paste' do
6160
driver.get 'https://www.selenium.dev/selenium/web/single_text_input.html'
6261
wait.until { driver.find_element(id: 'textInput').attribute('autofocus') }
6362

Diff for: examples/ruby/spec/bidi/network_spec.rb

+4-31
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,9 @@
44
let(:driver) { start_bidi_session }
55
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
66

7-
it 'adds an auth handler', skip: 'until Selenium release 4.28.0' do
8-
network = driver.network
9-
network.add_authentication_handler('username', 'password')
10-
expect(network.callbacks.count).to be 1
11-
end
12-
13-
it 'adds a request handler', skip: 'until Selenium release 4.28.0' do
14-
network = driver.network
15-
network.add_request_handler
16-
expect(network.callbacks.count).to be 1
17-
end
18-
19-
it 'adds a response handler', skip: 'until Selenium release 4.28.0' do
20-
network = driver.network
21-
network.add_response_handler
22-
expect(network.callbacks.count).to be 1
23-
end
24-
25-
it 'removes a handler', skip: 'until Selenium release 4.28.0' do
26-
network = driver.network
27-
id = network.add_request_handler
28-
network.remove_handler(id)
29-
expect(network.callbacks.count).to be 0
30-
end
31-
32-
it 'clears all handlers', skip: 'until Selenium release 4.28.0' do
33-
network = driver.network
34-
network.add_request_handler
35-
network.add_request_handler
36-
network.clear_handlers
37-
expect(network.callbacks.count).to be 0
7+
it 'adds an auth handler', skip: 'Do not execute BiDi test' do
8+
driver.network.add_authentication_handler('test', 'test')
9+
driver.navigate.to url_for('basicAuth')
10+
expect(driver.find_element(tag_name: 'h1').text).to eq('authorized')
3811
end
3912
end

Diff for: website_and_docs/content/documentation/webdriver/bidi/network.en.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ They allow you to programmatically provide credentials or modify the authenticat
3131
{{< tab header="CSharp" >}}
3232
{{< /tab >}}
3333
{{< tab header="Ruby" >}}
34-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L8-L10" >}}
34+
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L7-L11" >}}
3535
{{< /tab >}}
3636
{{< tab header="JavaScript" >}}
3737
{{< /tab >}}
@@ -55,7 +55,6 @@ Request handlers are essential for testing and debugging scenarios where you nee
5555
{{< tab header="CSharp" >}}
5656
{{< /tab >}}
5757
{{< tab header="Ruby" >}}
58-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L14-L16" >}}
5958
{{< /tab >}}
6059
{{< tab header="JavaScript" >}}
6160
{{< /tab >}}
@@ -76,7 +75,6 @@ They are particularly useful for testing scenarios involving response data, such
7675
{{< tab header="CSharp" >}}
7776
{{< /tab >}}
7877
{{< tab header="Ruby" >}}
79-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L20-L22" >}}
8078
{{< /tab >}}
8179
{{< tab header="JavaScript" >}}
8280
{{< /tab >}}
@@ -94,7 +92,6 @@ They are particularly useful for testing scenarios involving response data, such
9492
{{< tab header="CSharp" >}}
9593
{{< /tab >}}
9694
{{< tab header="Ruby" >}}
97-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L26-L29" >}}
9895
{{< /tab >}}
9996
{{< tab header="JavaScript" >}}
10097
{{< /tab >}}
@@ -112,7 +109,6 @@ They are particularly useful for testing scenarios involving response data, such
112109
{{< tab header="CSharp" >}}
113110
{{< /tab >}}
114111
{{< tab header="Ruby" >}}
115-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L33-L37" >}}
116112
{{< /tab >}}
117113
{{< tab header="JavaScript" >}}
118114
{{< /tab >}}

Diff for: website_and_docs/content/documentation/webdriver/bidi/network.ja.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ They allow you to programmatically provide credentials or modify the authenticat
3131
{{< tab header="CSharp" >}}
3232
{{< /tab >}}
3333
{{< tab header="Ruby" >}}
34-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L8-L10" >}}
34+
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L7-L11" >}}
3535
{{< /tab >}}
3636
{{< tab header="JavaScript" >}}
3737
{{< /tab >}}
@@ -55,7 +55,6 @@ Request handlers are essential for testing and debugging scenarios where you nee
5555
{{< tab header="CSharp" >}}
5656
{{< /tab >}}
5757
{{< tab header="Ruby" >}}
58-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L14-L16" >}}
5958
{{< /tab >}}
6059
{{< tab header="JavaScript" >}}
6160
{{< /tab >}}
@@ -76,7 +75,6 @@ They are particularly useful for testing scenarios involving response data, such
7675
{{< tab header="CSharp" >}}
7776
{{< /tab >}}
7877
{{< tab header="Ruby" >}}
79-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L20-L22" >}}
8078
{{< /tab >}}
8179
{{< tab header="JavaScript" >}}
8280
{{< /tab >}}
@@ -94,7 +92,6 @@ They are particularly useful for testing scenarios involving response data, such
9492
{{< tab header="CSharp" >}}
9593
{{< /tab >}}
9694
{{< tab header="Ruby" >}}
97-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L26-L29" >}}
9895
{{< /tab >}}
9996
{{< tab header="JavaScript" >}}
10097
{{< /tab >}}
@@ -112,7 +109,6 @@ They are particularly useful for testing scenarios involving response data, such
112109
{{< tab header="CSharp" >}}
113110
{{< /tab >}}
114111
{{< tab header="Ruby" >}}
115-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L33-L37" >}}
116112
{{< /tab >}}
117113
{{< tab header="JavaScript" >}}
118114
{{< /tab >}}

Diff for: website_and_docs/content/documentation/webdriver/bidi/network.pt-br.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ They allow you to programmatically provide credentials or modify the authenticat
3131
{{< tab header="CSharp" >}}
3232
{{< /tab >}}
3333
{{< tab header="Ruby" >}}
34-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L8-L10" >}}
34+
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L7-L11" >}}
3535
{{< /tab >}}
3636
{{< tab header="JavaScript" >}}
3737
{{< /tab >}}
@@ -55,7 +55,6 @@ Request handlers are essential for testing and debugging scenarios where you nee
5555
{{< tab header="CSharp" >}}
5656
{{< /tab >}}
5757
{{< tab header="Ruby" >}}
58-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L14-L16" >}}
5958
{{< /tab >}}
6059
{{< tab header="JavaScript" >}}
6160
{{< /tab >}}
@@ -76,7 +75,6 @@ They are particularly useful for testing scenarios involving response data, such
7675
{{< tab header="CSharp" >}}
7776
{{< /tab >}}
7877
{{< tab header="Ruby" >}}
79-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L20-L22" >}}
8078
{{< /tab >}}
8179
{{< tab header="JavaScript" >}}
8280
{{< /tab >}}
@@ -94,7 +92,6 @@ They are particularly useful for testing scenarios involving response data, such
9492
{{< tab header="CSharp" >}}
9593
{{< /tab >}}
9694
{{< tab header="Ruby" >}}
97-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L26-L29" >}}
9895
{{< /tab >}}
9996
{{< tab header="JavaScript" >}}
10097
{{< /tab >}}
@@ -112,7 +109,6 @@ They are particularly useful for testing scenarios involving response data, such
112109
{{< tab header="CSharp" >}}
113110
{{< /tab >}}
114111
{{< tab header="Ruby" >}}
115-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L33-L37" >}}
116112
{{< /tab >}}
117113
{{< tab header="JavaScript" >}}
118114
{{< /tab >}}

Diff for: website_and_docs/content/documentation/webdriver/bidi/network.zh-cn.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ They allow you to programmatically provide credentials or modify the authenticat
3131
{{< tab header="CSharp" >}}
3232
{{< /tab >}}
3333
{{< tab header="Ruby" >}}
34-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L8-L10" >}}
34+
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L7-L11" >}}
3535
{{< /tab >}}
3636
{{< tab header="JavaScript" >}}
3737
{{< /tab >}}
@@ -55,7 +55,6 @@ Request handlers are essential for testing and debugging scenarios where you nee
5555
{{< tab header="CSharp" >}}
5656
{{< /tab >}}
5757
{{< tab header="Ruby" >}}
58-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L14-L16" >}}
5958
{{< /tab >}}
6059
{{< tab header="JavaScript" >}}
6160
{{< /tab >}}
@@ -76,7 +75,6 @@ They are particularly useful for testing scenarios involving response data, such
7675
{{< tab header="CSharp" >}}
7776
{{< /tab >}}
7877
{{< tab header="Ruby" >}}
79-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L20-L22" >}}
8078
{{< /tab >}}
8179
{{< tab header="JavaScript" >}}
8280
{{< /tab >}}
@@ -94,7 +92,6 @@ They are particularly useful for testing scenarios involving response data, such
9492
{{< tab header="CSharp" >}}
9593
{{< /tab >}}
9694
{{< tab header="Ruby" >}}
97-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L26-L29" >}}
9895
{{< /tab >}}
9996
{{< tab header="JavaScript" >}}
10097
{{< /tab >}}
@@ -112,7 +109,6 @@ They are particularly useful for testing scenarios involving response data, such
112109
{{< tab header="CSharp" >}}
113110
{{< /tab >}}
114111
{{< tab header="Ruby" >}}
115-
{{< gh-codeblock path="examples/ruby/spec/bidi/network_spec.rb#L33-L37" >}}
116112
{{< /tab >}}
117113
{{< tab header="JavaScript" >}}
118114
{{< /tab >}}

0 commit comments

Comments
 (0)