-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] Add websocket-port parameter to firefox service #15458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aguspe
merged 22 commits into
SeleniumHQ:trunk
from
aguspe:rb_add_argument_for_websocket_port
Apr 29, 2025
Merged
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
03d36c9
Add --websocket-port parameter to firefox service
aguspe 532901d
Correct identation issue
aguspe 8f30cbe
Add guard to test
aguspe 8a06214
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 7f9eacb
Improve unit test
aguspe 9341f70
Merge remote-tracking branch 'origin/rb_add_argument_for_websocket_po…
aguspe 6d94f0e
Improve unit test
aguspe b2bd960
fix identation
aguspe 82caee4
Simplifying test and fixing formatting issue
aguspe 360c7b6
Simplifying test and fixing formatting issue
aguspe 58cfb2e
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe f93a1f5
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 3062d0e
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe ea89793
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 0765208
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 63c1bd7
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 56485c7
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 7b26610
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 5872b2d
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 6d808e8
Use the PortProber isntead of Sockets
aguspe c45777c
Merge branch 'trunk' into rb_add_argument_for_websocket_port
aguspe 2aba2ab
Change port to 9222
aguspe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # Licensed to the Software Freedom Conservancy (SFC) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The SFC licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| require 'socket' | ||
|
|
||
| module Selenium | ||
| module WebDriver | ||
| module Support | ||
| module Sockets | ||
| def self.free_port | ||
| server = TCPServer.new('127.0.0.1', 0) | ||
| port = server.addr[1] | ||
| server.close | ||
| port | ||
| end | ||
| end # Sockets | ||
| end # Support | ||
| end # WebDriver | ||
| end # Selenium | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| module Selenium | ||
| module WebDriver | ||
| module Support | ||
| module Sockets | ||
| def self.free_port: -> Integer | ||
| end | ||
| end | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.