@@ -2,6 +2,8 @@ from datetime import timedelta
2
2
from typing import Any , Optional , Union
3
3
4
4
import selenium
5
+ from selenium .webdriver .remote .webdriver import WebDriver
6
+ from selenium .webdriver .remote .webelement import WebElement
5
7
6
8
class SeleniumLibrary :
7
9
def __init__ (
@@ -119,7 +121,7 @@ class SeleniumLibrary:
119
121
self ,
120
122
locator : Union [selenium .webdriver .remote .webelement .WebElement , str ],
121
123
attribute : str ,
122
- expected : str ,
124
+ expected : Union [ None , str ] ,
123
125
message : Optional [str ] = None ,
124
126
): ...
125
127
def element_should_be_disabled (
@@ -139,7 +141,7 @@ class SeleniumLibrary:
139
141
def element_should_contain (
140
142
self ,
141
143
locator : Union [selenium .webdriver .remote .webelement .WebElement , str ],
142
- expected : str ,
144
+ expected : Union [ None , str ] ,
143
145
message : Optional [str ] = None ,
144
146
ignore_case : bool = False ,
145
147
): ...
@@ -151,21 +153,21 @@ class SeleniumLibrary:
151
153
def element_should_not_contain (
152
154
self ,
153
155
locator : Union [selenium .webdriver .remote .webelement .WebElement , str ],
154
- expected : str ,
156
+ expected : Union [ None , str ] ,
155
157
message : Optional [str ] = None ,
156
158
ignore_case : bool = False ,
157
159
): ...
158
160
def element_text_should_be (
159
161
self ,
160
162
locator : Union [selenium .webdriver .remote .webelement .WebElement , str ],
161
- expected : str ,
163
+ expected : Union [ None , str ] ,
162
164
message : Optional [str ] = None ,
163
165
ignore_case : bool = False ,
164
166
): ...
165
167
def element_text_should_not_be (
166
168
self ,
167
169
locator : Union [selenium .webdriver .remote .webelement .WebElement , str ],
168
- not_expected : str ,
170
+ not_expected : Union [ None , str ] ,
169
171
message : Optional [str ] = None ,
170
172
ignore_case : bool = False ,
171
173
): ...
0 commit comments