Skip to content

Commit e3ed7a1

Browse files
authored
Merge pull request robotframework#1821 from robinmatz/optimize-documentation
Improve documentation on page load timeout
2 parents 52849e4 + ea4fe81 commit e3ed7a1

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/SeleniumLibrary/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ class SeleniumLibrary(DynamicCore):
356356
See `time format` below for supported syntax.
357357
358358
== Page load ==
359-
Page load timeout is the amount of time to wait for page load to complete until error is raised.
359+
Page load timeout is the amount of time to wait for page load to complete
360+
until a timeout exception is raised.
360361
361362
The default page load timeout can be set globally
362363
when `importing` the library with the ``page_load_timeout`` argument
@@ -467,7 +468,7 @@ def __init__(
467468
Class for wrapping Selenium with
468469
[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]
469470
- ``page_load_timeout``:
470-
Default value to wait for page load to complete until error is raised.
471+
Default value to wait for page load to complete until a timeout exception is raised.
471472
- ``action_chain_delay``:
472473
Default value for `ActionChains` delay to wait in between actions.
473474
"""

src/SeleniumLibrary/keywords/browsermanagement.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ def get_selenium_implicit_wait(self) -> str:
614614

615615
@keyword
616616
def get_selenium_page_load_timeout(self) -> str:
617-
"""Gets the timeout to wait for a page load to complete
618-
before throwing an error.
617+
"""Gets the time to wait for a page load to complete
618+
before raising a timeout exception.
619619
620620
The value is returned as a human-readable string like ``1 second``.
621621
@@ -733,9 +733,9 @@ def set_selenium_page_load_timeout(self, value: timedelta) -> str:
733733
The previous value is returned and can be used to restore
734734
the original value later if needed.
735735
736-
In contrast to `Set Selenium Timeout` and `Set Selenium Implicit Wait`
737-
this keywords sets the time for Webdriver to wait until page
738-
is loaded before throwing an error.
736+
In contrast to `Set Selenium Timeout` and `Set Selenium Implicit Wait`,
737+
this keywords sets the time for the Webdriver to wait until the page
738+
is loaded before raising a timeout exception.
739739
740740
See the `Page load` section above for more information.
741741

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ Selenium documentation] for more information about this functionality.
299299
See `time format` below for supported syntax.
300300

301301
== Page load ==
302-
Page load timeout is the amount of time to wait for page load to complete until error is raised.
302+
Page load timeout is the amount of time to wait for page load to complete
303+
until a timeout exception is raised.
303304

304305
The default page load timeout can be set globally
305306
when `importing` the library with the ``page_load_timeout`` argument

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
@@ -16,6 +16,6 @@ SeleniumLibrary can be imported with several optional arguments.
1616
Class for wrapping Selenium with
1717
[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]
1818
- ``page_load_timeout``:
19-
Default value to wait for page load to complete until error is raised.
19+
Default value to wait for page load to complete until a timeout exception is raised.
2020
- ``action_chain_delay``:
2121
Default value for `ActionChains` delay to wait in between actions.

0 commit comments

Comments
 (0)