Skip to content

Commit 4820c97

Browse files
authored
Merge pull request #1977 from emanlove/1976-fix-links-in-open-broswer-doc
Fixed broken links within Open Browser keyword. Also fixed other broken links to the Selenium Python API. Fixes #1976
2 parents d7202a2 + ff15d01 commit 4820c97

8 files changed

Lines changed: 18 additions & 18 deletions

‎src/SeleniumLibrary/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ class SeleniumLibrary(DynamicCore):
523523
= EventFiringWebDriver =
524524

525525
The SeleniumLibrary offers support for
526-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver].
526+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver].
527527
See the Selenium and SeleniumLibrary
528528
[https://github.com/robotframework/SeleniumLibrary/blob/master/docs/extending/extending.rst#EventFiringWebDriver|EventFiringWebDriver support]
529529
documentation for further details.
@@ -620,7 +620,7 @@ def __init__(
620620
Allows extending the SeleniumLibrary with external Python classes.
621621
- ``event_firing_webdriver``:
622622
Class for wrapping Selenium with
623-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver]
623+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver]
624624
- ``page_load_timeout``:
625625
Default value to wait for page load to complete until a timeout exception is raised.
626626
- ``action_chain_delay``:

‎src/SeleniumLibrary/keywords/browsermanagement.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def open_browser(
133133
Optional ``ff_profile_dir`` is the path to the Firefox profile
134134
directory if you wish to overwrite the default profile Selenium
135135
uses. The ``ff_profile_dir`` can also be an instance of the
136-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.html|selenium.webdriver.FirefoxProfile]
136+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_firefox/selenium.webdriver.firefox.firefox_profile.html#module-selenium.webdriver.firefox.firefox_profile|selenium.webdriver.firefox.firefox_profile]
137137
. As a third option, it is possible to use `FirefoxProfile` methods
138138
and attributes to define the profile using methods and attributes
139139
in the same way as with ``options`` argument. Example: It is possible
@@ -149,9 +149,9 @@ def open_browser(
149149
Optional ``options`` argument allows defining browser specific
150150
Selenium options. Example for Chrome, the ``options`` argument
151151
allows defining the following
152-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_chrome/selenium.webdriver.chrome.options.html#selenium.webdriver.chrome.options.Options|methods and attributes]
152+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_chrome/selenium.webdriver.chrome.options.html#selenium.webdriver.chrome.options.Options|methods and attributes]
153153
and for Firefox these
154-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_firefox/selenium.webdriver.firefox.options.html?highlight=firefox#selenium.webdriver.firefox.options.Options|methods and attributes]
154+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_firefox/selenium.webdriver.firefox.options.html#selenium.webdriver.firefox.options.Options|methods and attributes]
155155
are available. Selenium options are also supported, when ``remote_url``
156156
argument is used.
157157

@@ -163,7 +163,7 @@ def open_browser(
163163
methods or attributes.
164164

165165
Example when using
166-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_chrome/selenium.webdriver.chrome.options.html#selenium.webdriver.chrome.options.Options|Chrome options]
166+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_chrome/selenium.webdriver.chrome.options.html#selenium.webdriver.chrome.options.Options|Chrome options]
167167
method:
168168
| `Open Browser` | http://example.com | Chrome | options=add_argument("--disable-popup-blocking"); add_argument("--ignore-certificate-errors") | # Sting format. |
169169
| `Open Browser` | None | Chrome | options=binary_location="/path/to/binary";add_argument("remote-debugging-port=port") | # Start Chomium-based application. |
@@ -289,7 +289,7 @@ def create_webdriver(
289289
The initialized WebDriver can be configured either with a Python
290290
dictionary ``kwargs`` or by using keyword arguments ``**init_kwargs``.
291291
These arguments are passed directly to WebDriver without any
292-
processing. See [https://seleniumhq.github.io/selenium/docs/api/py/api.html|
292+
processing. See [https://www.selenium.dev/selenium/docs/api/py/api.html|
293293
Selenium API documentation] for details about the supported arguments.
294294

295295
Examples:

‎src/SeleniumLibrary/keywords/element.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ def click_element(
664664
syntax.
665665

666666
The ``modifier`` argument can be used to pass
667-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys|Selenium Keys]
667+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_common/selenium.webdriver.common.keys.html#module-selenium.webdriver.common.keys|Selenium Keys]
668668
when clicking the element. The `+` can be used as a separator
669669
for different Selenium Keys. The `CTRL` is internally translated to
670670
the `CONTROL` key. The ``modifier`` is space and case insensitive, example
671671
"alt" and " aLt " are supported formats to
672-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys.ALT|ALT key]
672+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_common/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys.ALT|ALT key]
673673
. If ``modifier`` does not match to Selenium Keys, keyword fails.
674674

675675
If ``action_chain`` argument is true, see `Boolean arguments` for more
@@ -943,7 +943,7 @@ def press_keys(self, locator: Locator | None = None, *keys: str):
943943

944944
``keys`` arguments can contain one or many strings, but it can not
945945
be empty. ``keys`` can also be a combination of
946-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html|Selenium Keys]
946+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_common/selenium.webdriver.common.keys.html|Selenium Keys]
947947
and strings or a single Selenium Key. If Selenium Key is combined
948948
with strings, Selenium key and strings must be separated by the
949949
`+` character, like in `CONTROL+c`. Selenium Keys
@@ -961,9 +961,9 @@ def press_keys(self, locator: Locator | None = None, *keys: str):
961961
`+` character, example `E+N+D`.
962962

963963
`CTRL` is alias for
964-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys.CONTROL|Selenium CONTROL]
964+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_common/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys.CONTROL|Selenium CONTROL]
965965
and ESC is alias for
966-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys.ESCAPE|Selenium ESCAPE]
966+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_common/selenium.webdriver.common.keys.html#selenium.webdriver.common.keys.Keys.ESCAPE|Selenium ESCAPE]
967967

968968
New in SeleniumLibrary 3.3
969969

‎src/SeleniumLibrary/keywords/formelement.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def choose_file(self, locator: Locator, file_path: str):
220220
The keyword does not check ``file_path`` is the file or folder
221221
available on the machine where tests are executed. If the ``file_path``
222222
points at a file and when using Selenium Grid, Selenium will
223-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.command.html?highlight=upload#selenium.webdriver.remote.command.Command.UPLOAD_FILE|magically],
223+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_remote/selenium.webdriver.remote.command.html#selenium.webdriver.remote.command.Command.UPLOAD_FILE|magically],
224224
transfer the file from the machine where the tests are executed
225225
to the Selenium Grid node where the browser is running.
226226
Then Selenium will send the file path, from the nodes file

‎src/SeleniumLibrary/keywords/javascript.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def execute_javascript(self, *code: Any) -> Any:
5252
Return values are converted to the appropriate Python types.
5353

5454
Starting from SeleniumLibrary 3.2 it is possible to provide JavaScript
55-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.execute_script|
55+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.execute_script|
5656
arguments] as part of ``code`` argument. The JavaScript code and
5757
arguments must be separated with `JAVASCRIPT` and `ARGUMENTS` markers
5858
and must be used exactly with this format. If the Javascript code is
@@ -85,7 +85,7 @@ def execute_async_javascript(self, *code: Any) -> Any:
8585
fail. See the `Timeout` section for more information.
8686

8787
Starting from SeleniumLibrary 3.2 it is possible to provide JavaScript
88-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.execute_async_script|
88+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.execute_async_script|
8989
arguments] as part of ``code`` argument. See `Execute Javascript` for
9090
more details.
9191

‎utest/test/api/approved_files/PluginDocumentation.test_many_plugins.approved.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ arguments to boolean values.
463463
= EventFiringWebDriver =
464464

465465
The SeleniumLibrary offers support for
466-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver].
466+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver].
467467
See the Selenium and SeleniumLibrary
468468
[https://github.com/robotframework/SeleniumLibrary/blob/master/docs/extending/extending.rst#EventFiringWebDriver|EventFiringWebDriver support]
469469
documentation for further details.

‎utest/test/api/approved_files/PluginDocumentation.test_parse_plugin_init_doc.approved.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SeleniumLibrary can be imported with several optional arguments.
1414
Allows extending the SeleniumLibrary with external Python classes.
1515
- ``event_firing_webdriver``:
1616
Class for wrapping Selenium with
17-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver]
17+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_support/selenium.webdriver.support.event_firing_webdriver.html#module-selenium.webdriver.support.event_firing_webdriver|EventFiringWebDriver]
1818
- ``page_load_timeout``:
1919
Default value to wait for page load to complete until a timeout exception is raised.
2020
- ``action_chain_delay``:

‎utest/test/api/approved_files/PluginDocumentation.test_parse_plugin_kw_doc.approved.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This keyword returns whatever the executed JavaScript code returns.
1919
Return values are converted to the appropriate Python types.
2020

2121
Starting from SeleniumLibrary 3.2 it is possible to provide JavaScript
22-
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.execute_script|
22+
[https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.execute_script|
2323
arguments] as part of ``code`` argument. The JavaScript code and
2424
arguments must be separated with `JAVASCRIPT` and `ARGUMENTS` markers
2525
and must be used exactly with this format. If the Javascript code is

0 commit comments

Comments
 (0)