Skip to content

Commit

Permalink
Stub fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltat committed Mar 22, 2021
1 parent 42b7321 commit af8e9b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions gen_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def keyword_line(keyword_arguments, keyword_types, method_name):
from typing import Any, Optional, Union
import selenium
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement
class SeleniumLibrary:
"""
Expand Down
12 changes: 7 additions & 5 deletions src/SeleniumLibrary/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ from datetime import timedelta
from typing import Any, Optional, Union

import selenium
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement

class SeleniumLibrary:
def __init__(
Expand Down Expand Up @@ -119,7 +121,7 @@ class SeleniumLibrary:
self,
locator: Union[selenium.webdriver.remote.webelement.WebElement, str],
attribute: str,
expected: str,
expected: Union[None, str],
message: Optional[str] = None,
): ...
def element_should_be_disabled(
Expand All @@ -139,7 +141,7 @@ class SeleniumLibrary:
def element_should_contain(
self,
locator: Union[selenium.webdriver.remote.webelement.WebElement, str],
expected: str,
expected: Union[None, str],
message: Optional[str] = None,
ignore_case: bool = False,
): ...
Expand All @@ -151,21 +153,21 @@ class SeleniumLibrary:
def element_should_not_contain(
self,
locator: Union[selenium.webdriver.remote.webelement.WebElement, str],
expected: str,
expected: Union[None, str],
message: Optional[str] = None,
ignore_case: bool = False,
): ...
def element_text_should_be(
self,
locator: Union[selenium.webdriver.remote.webelement.WebElement, str],
expected: str,
expected: Union[None, str],
message: Optional[str] = None,
ignore_case: bool = False,
): ...
def element_text_should_not_be(
self,
locator: Union[selenium.webdriver.remote.webelement.WebElement, str],
not_expected: str,
not_expected: Union[None, str],
message: Optional[str] = None,
ignore_case: bool = False,
): ...
Expand Down

0 comments on commit af8e9b8

Please sign in to comment.