Skip to content

Commit 684db2d

Browse files
committed
added a test for using a WebElement as locator for Page Should Contain Element
1 parent 9c522a2 commit 684db2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atest/acceptance/locators/locator_parsing.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ Multiple Locators as a List should work
5252
${locator_list} = Create List id:div_id ${element} id:bar=foo
5353
Page Should Contain Element ${locator_list}
5454

55+
WebElement as locator should work
56+
${element} = Get WebElement id:foo:bar
57+
Page Should Contain Element ${element}
58+
5559
When One Of Locator From Multiple Locators Is Not Found Keyword Fails
5660
Run Keyword And Expect Error
5761
... Element with locator 'id:not_here' not found.

0 commit comments

Comments
 (0)