Merge pull request #965 from IvanReznikov/3.2.0-list-typing-fix
minor typing change to handle list typing
This commit is contained in:
commit
dd0c7ca75e
|
@ -1,5 +1,6 @@
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
import selenium.webdriver.remote.webelement
|
import selenium.webdriver.remote.webelement
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
class WebElement(selenium.webdriver.remote.webelement.WebElement):
|
class WebElement(selenium.webdriver.remote.webelement.WebElement):
|
||||||
|
@ -9,7 +10,7 @@ class WebElement(selenium.webdriver.remote.webelement.WebElement):
|
||||||
|
|
||||||
def children(
|
def children(
|
||||||
self, tag=None, recursive=False
|
self, tag=None, recursive=False
|
||||||
) -> list[selenium.webdriver.remote.webelement.WebElement]:
|
) -> List[selenium.webdriver.remote.webelement.WebElement]:
|
||||||
"""
|
"""
|
||||||
returns direct child elements of current element
|
returns direct child elements of current element
|
||||||
:param tag: str, if supplied, returns <tag> nodes only
|
:param tag: str, if supplied, returns <tag> nodes only
|
||||||
|
|
Loading…
Reference in New Issue