Skip to content

Commit 916714e

Browse files
committed
Fine tuning
1 parent 2c5aeb6 commit 916714e

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

src/SeleniumLibrary/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SeleniumLibrary(DynamicCore):
138138
Different locator strategies have different pros and cons. Using ids,
139139
either explicitly like ``id:foo`` or by using the `default locator
140140
strategy` simply like ``foo``, is recommended when possible, because
141-
the syntax is simple and locating elements by id is fast for browsers.
141+
the syntax is simple and locating elements by an id is fast for browsers.
142142
If an element does not have an id or the id is not stable, other
143143
solutions need to be used. If an element has a unique tag name or class,
144144
using ``tag``, ``class`` or ``css`` strategy like ``tag:h1``,
@@ -281,12 +281,12 @@ class SeleniumLibrary(DynamicCore):
281281
https://robocon.io/, https://github.com/robotframework/'
282282
and 'https://github.com/.
283283
284-
= Timeouts, waits, and delays =
284+
= Timeouts, waits and delays =
285285
286286
This section discusses different ways how to wait for elements to
287287
appear on web pages and to slow down execution speed otherwise.
288288
It also explains the `time format` that can be used when setting various
289-
timeouts, waits, and delays.
289+
timeouts, waits and delays.
290290
291291
== Timeout ==
292292
@@ -385,11 +385,11 @@ class SeleniumLibrary(DynamicCore):
385385
386386
= Thread support =
387387
388-
SeleniumLibrary is not thread-safe. This is mainly due because the underlying
388+
SeleniumLibrary is not thread safe. This is mainly due because the underlying
389389
[https://github.com/SeleniumHQ/selenium/wiki/Frequently-Asked-Questions#q-is-webdriver-thread-safe|
390-
Selenium tool is not thread-safe] within one browser/driver instance.
390+
Selenium tool is not thread safe] within one browser/driver instance.
391391
Because of the limitation in the Selenium side, the keywords or the
392-
API provided by the SeleniumLibrary is not thread-safe.
392+
API provided by the SeleniumLibrary is not thread safe.
393393
394394
= Plugins =
395395

src/SeleniumLibrary/keywords/alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def alert_should_not_be_present(self, action=ACCEPT, timeout=0):
7575
`Handle Alert` keyword.
7676
7777
``timeout`` specifies how long to wait for the alert to appear.
78-
By default, is not waited for the alert at all, but a custom time can
78+
By default, the alert is not waited at all, but a custom time can
7979
be given if alert may be delayed. See the `time format` section
8080
for information about the syntax.
8181

src/SeleniumLibrary/keywords/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def click_button(self, locator, modifier=False):
512512
513513
See the `Locating elements` section for details about the locator
514514
syntax. When using the default locator strategy, buttons are
515-
searched using ``id``, ``name``, and ``value``.
515+
searched using ``id``, ``name`` and ``value``.
516516
517517
See the `Click Element` keyword for details about the
518518
``modifier`` argument.

src/SeleniumLibrary/keywords/formelement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def page_should_not_contain_button(self, locator, message=None, loglevel='TRACE'
385385
386386
See the `Locating elements` section for details about the locator
387387
syntax. When using the default locator strategy, buttons are
388-
searched using ``id``, ``name``, and ``value``.
388+
searched using ``id``, ``name`` and ``value``.
389389
"""
390390
self.assert_page_not_contains(locator, 'button', message, loglevel)
391391
self.assert_page_not_contains(locator, 'input', message, loglevel)

src/SeleniumLibrary/keywords/window.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def switch_window(self, locator='MAIN', timeout=None, browser='CURRENT'):
5656
- The ``locator`` can specify an explicit strategy by using the format
5757
``strategy:value`` (recommended) or ``strategy=value``. Supported
5858
strategies are ``name``, ``title``, and ``url``. These matches windows
59-
using their name, title, or URL, respectively. Additionally, ``default``
59+
using their name, title or URL, respectively. Additionally, ``default``
6060
can be used to explicitly use the default strategy explained above.
6161
6262
- If the ``locator`` is ``NEW`` (case-insensitive), the latest
@@ -221,14 +221,14 @@ def set_window_size(self, width, height, inner=False):
221221
222222
If ``inner`` parameter is set to True, keyword sets the necessary
223223
window width and height to have the desired HTML DOM _window.innerWidth_
224-
and _window.innerHeight_. See `Boolean arguments` for more details on how to set boolean
225-
arguments.
226-
227-
The ``inner`` argument is new since SeleniumLibrary 4.0.
224+
and _window.innerHeight_. See `Boolean arguments` for more details on
225+
how to set boolean arguments.
228226
229227
This ``inner`` argument does not support Frames. If a frame is selected,
230228
switch to default before running this.
231229
230+
The ``inner`` argument is new since SeleniumLibrary 4.0.
231+
232232
Example:
233233
| `Set Window Size` | 800 | 600 | |
234234
| `Set Window Size` | 800 | 600 | True |

0 commit comments

Comments
 (0)