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

Adding doc string to find_element and find_elements methods #5384

Merged
merged 1 commit into from Feb 2, 2018
Jump to file or symbol
Failed to load files and symbols.
+16 −0
Diff settings

Always

Just for now

@@ -628,6 +628,14 @@ def _execute(self, command, params=None):
return self._parent.execute(command, params)
def find_element(self, by=By.ID, value=None):
"""
'Private' method used by the find_element_by_* methods.
:Usage:
Use the corresponding find_element_by_* instead of this.
:rtype: WebElement
"""
if self._w3c:
if by == By.ID:
by = By.CSS_SELECTOR
@@ -645,6 +653,14 @@ def find_element(self, by=By.ID, value=None):
{"using": by, "value": value})['value']
def find_elements(self, by=By.ID, value=None):
"""
'Private' method used by the find_elements_by_* methods.
:Usage:
Use the corresponding find_elements_by_* instead of this.
:rtype: list of WebElement
"""
if self._w3c:
if by == By.ID:
by = By.CSS_SELECTOR
ProTip! Use n and p to navigate between commits in a pull request.