Skip to content

Commit c5a101c

Browse files
committed
added fix for Page Should Contain Element not accepting lists
1 parent 7dd3766 commit c5a101c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SeleniumLibrary/keywords/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def page_should_contain(self, text: str, loglevel: str = "TRACE"):
143143
@keyword
144144
def page_should_contain_element(
145145
self,
146-
locator: Union[WebElement, str],
146+
locator: Union[WebElement, str, list[Union[WebElement,str]]],
147147
message: Optional[str] = None,
148148
loglevel: str = "TRACE",
149149
limit: Optional[int] = None,

0 commit comments

Comments
 (0)