Skip to content

Commit 2a43011

Browse files
Fix typos for Python bindings (#10052)
Co-authored-by: David Burns <david.burns@theautomatedtester.co.uk>
1 parent 19dfc41 commit 2a43011

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

py/CHANGES

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Selenium 4.0 Alpha 6
192192
* Update tests and docs to not use deprecated methods
193193
* mark various tests as failing in Firefox
194194
* Use callback functions instead callable objects as expected conditions (#7765)
195-
* Fix error in webelemet not created, verifing if is str or dict. (#3481)
195+
* Fix error in webelemet not created, verifying if is str or dict. (#3481)
196196
* verify command_executor ssl certificate by default (#6536)
197197
* Correct documentation for ChromiumDriver
198198
* Deprecating find_element(s)_* calls in event firing webdriver
@@ -218,7 +218,7 @@ Selenium 4.0 Alpha 5
218218
* Add support for relative locators
219219
* Fix clear actions in ActionChains (#7943)
220220
* Automate RemoteConnection subclass selection (#8010)
221-
* Fix capabilties to support macOS platform (#7980)
221+
* Fix capabilities to support macOS platform (#7980)
222222
* fix: DeprecationWarning of base64.encodestring() (#7446)
223223
* Build python code with Bazel
224224
* Parse python docstring example as code snippet
@@ -319,7 +319,7 @@ Selenium 3.13.0
319319

320320
Selenium 3.12.0
321321

322-
* Add desired_capabilities keyword to IE and Firefox drivers for driver consitency
322+
* Add desired_capabilities keyword to IE and Firefox drivers for driver consistency
323323
* Fix bug with creating Safari webdriver instance (#5578)
324324
* Add support for Safari extension command
325325
* Deprecate Options `set_headless` methods in favor of property setter
@@ -543,7 +543,7 @@ Selenium 2.53.0
543543
* Adding Options object for use with Python FirefoxDriver
544544
* Fixed improper usage of super in exceptions module
545545
* create a temp file for cookies in phantomjs if not specified
546-
* Pass in the executable that FirefoxBinary finds to the service if there isnt one passed in as a kwarg or capability
546+
* Pass in the executable that FirefoxBinary finds to the service if there isn't one passed in as a kwarg or capability
547547
* Applied some DRY and extracted out the keys_to_typing()
548548
* Fix deselecting options in <select>
549549

@@ -651,7 +651,7 @@ Selenium 2.44.0
651651

652652
Selenium 2.43.0
653653
* Expand WebElement.get_attribute API docs
654-
* firefox may be installed without admininstrator privileges
654+
* firefox may be installed without administrator privileges
655655
and therefore there may be no HKEY_LOCAL_MACHINE entry. Issue #7784
656656
* UnexpectedAlertPresentException should contain the alert text in python too. Issue #7745
657657
* don't mutate the global 'ignored exceptions', take a copy of the globally specified ones, change the
@@ -840,7 +840,7 @@ Selenium 2.20
840840
* Fixed Issue 3438
841841

842842
Selenium 2.19
843-
* WebDriverBackedSelenium is now avalaible to all languages
843+
* WebDriverBackedSelenium is now available to all languages
844844
* Addon installation fixes
845845

846846
Selenium 2.18
@@ -863,12 +863,12 @@ Selenium 2.14
863863
* A fix for Error Handling
864864

865865
Selenium 2.13
866-
* Fixed switch_to_window so that it didnt crash Firefox Bug 2633
866+
* Fixed switch_to_window so that it didn't crash Firefox Bug 2633
867867
* Fixed Screenshot handling to work in all browsers. Bug 2829
868868
* Force Firefox to the Foreground
869869

870870
Selenium 2.12
871-
* Added Select as a support pacakge
871+
* Added Select as a support package
872872
* Added Beta window size / position api's
873873
* Bug Fixes
874874

py/selenium/webdriver/chromium/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def execute_cdp_cmd(self, cmd: str, cmd_args: dict):
180180

181181
def get_sinks(self) -> list:
182182
"""
183-
:Returns: A list of sinks avaliable for Cast.
183+
:Returns: A list of sinks available for Cast.
184184
"""
185185
return self.execute('getSinks')['value']
186186

py/selenium/webdriver/remote/remote_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def reset_timeout(cls):
7474
def get_certificate_bundle_path(cls):
7575
"""
7676
:Returns:
77-
Paths of the .pem encoded certificate to verify connection to comand executor
77+
Paths of the .pem encoded certificate to verify connection to command executor
7878
"""
7979
return cls._ca_certs
8080

py/selenium/webdriver/remote/webdriver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ def set_window_size(self, width, height, windowHandle='current') -> dict:
13781378
driver.set_window_size(800,600)
13791379
"""
13801380
if windowHandle != 'current':
1381-
warnings.warn("Only 'current' window is supported for W3C compatibile browsers.")
1381+
warnings.warn("Only 'current' window is supported for W3C compatible browsers.")
13821382
self.set_window_rect(width=int(width), height=int(height))
13831383

13841384
def get_window_size(self, windowHandle='current') -> dict:
@@ -1392,7 +1392,7 @@ def get_window_size(self, windowHandle='current') -> dict:
13921392
"""
13931393

13941394
if windowHandle != 'current':
1395-
warnings.warn("Only 'current' window is supported for W3C compatibile browsers.")
1395+
warnings.warn("Only 'current' window is supported for W3C compatible browsers.")
13961396
size = self.get_window_rect()
13971397

13981398
if size.get('value', None):
@@ -1414,7 +1414,7 @@ def set_window_position(self, x, y, windowHandle='current') -> dict:
14141414
driver.set_window_position(0,0)
14151415
"""
14161416
if windowHandle != 'current':
1417-
warnings.warn("Only 'current' window is supported for W3C compatibile browsers.")
1417+
warnings.warn("Only 'current' window is supported for W3C compatible browsers.")
14181418
return self.set_window_rect(x=int(x), y=int(y))
14191419

14201420
def get_window_position(self, windowHandle='current') -> dict:
@@ -1428,7 +1428,7 @@ def get_window_position(self, windowHandle='current') -> dict:
14281428
"""
14291429

14301430
if windowHandle != 'current':
1431-
warnings.warn("Only 'current' window is supported for W3C compatibile browsers.")
1431+
warnings.warn("Only 'current' window is supported for W3C compatible browsers.")
14321432
position = self.get_window_rect()
14331433

14341434
return {k: position[k] for k in ('x', 'y')}

py/selenium/webdriver/remote/webelement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def get_property(self, name) -> str:
107107
try:
108108
return self._execute(Command.GET_ELEMENT_PROPERTY, {"name": name})["value"]
109109
except WebDriverException:
110-
# if we hit an end point that doesnt understand getElementProperty lets fake it
110+
# if we hit an end point that doesn't understand getElementProperty lets fake it
111111
return self.parent.execute_script('return arguments[0][arguments[1]]', self, name)
112112

113113
def get_dom_attribute(self, name) -> str:
@@ -614,7 +614,7 @@ def aria_role(self) -> str:
614614

615615
@property
616616
def accessible_name(self) -> str:
617-
"""Returns the ARIA Lavel of the current webelement"""
617+
"""Returns the ARIA Level of the current webelement"""
618618
return self._execute(Command.GET_ELEMENT_ARIA_LABEL)['value']
619619

620620
@property

py/selenium/webdriver/support/relative_locator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class RelativeBy(object):
7373

7474
def __init__(self, root: Dict[By, str] = None, filters: List = None):
7575
"""
76-
Creates a new RelativeBy object. It is prefered if you use the
76+
Creates a new RelativeBy object. It is preferred if you use the
7777
`locate_with` method as this signature could change.
7878
:Args:
7979
root - A dict with `By` enum as the key and the search query as the value

py/selenium/webdriver/support/select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def select_by_value(self, value):
8787
raise NoSuchElementException("Cannot locate option with value: %s" % value)
8888

8989
def select_by_index(self, index):
90-
"""Select the option at the given index. This is done by examing the "index" attribute of an
90+
"""Select the option at the given index. This is done by examining the "index" attribute of an
9191
element, and not merely by counting.
9292
9393
:Args:
@@ -171,7 +171,7 @@ def deselect_by_value(self, value):
171171
raise NoSuchElementException("Could not locate element with value: %s" % value)
172172

173173
def deselect_by_index(self, index):
174-
"""Deselect the option at the given index. This is done by examing the "index" attribute of an
174+
"""Deselect the option at the given index. This is done by examining the "index" attribute of an
175175
element, and not merely by counting.
176176
177177
:Args:

py/selenium/webdriver/support/wait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from selenium.common.exceptions import NoSuchElementException, InvalidSelectorException
2020
from selenium.common.exceptions import TimeoutException
2121

22-
POLL_FREQUENCY = 0.5 # How long to sleep inbetween calls to the method
22+
POLL_FREQUENCY = 0.5 # How long to sleep in between calls to the method
2323
IGNORED_EXCEPTIONS = (NoSuchElementException,) # exceptions ignored during calls to the method
2424

2525

py/test/selenium/webdriver/common/page_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
loaded, the @require_loaded decorator will make sure the page is loaded
2121
before the call is invoked.
2222
This pattern is also useful for waiting for certain asynchronous events
23-
to happen before excuting certain actions."""
23+
to happen before executing certain actions."""
2424

2525

2626
def require_loaded(func):

0 commit comments

Comments
 (0)