Skip to content

Commit bc344b9

Browse files
authored
Splitting Get Web Elments test cases (#1361)
1 parent 7974c6b commit bc344b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

atest/acceptance/keywords/elements.robot

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ Resource ../resource.robot
55
Library String
66

77
*** Test Cases ***
8-
Get Elements
8+
Get Many Elements
99
@{links}= Get WebElements //div[@id="div_id"]/a
1010
Length Should Be ${links} 12
11+
12+
Get Zero Elements
1113
${no_elements} = Get WebElements id:non_existing_elem
1214
Should Be Empty ${no_elements}
1315

1416
Get Web Element
1517
@{links}= Get WebElements //div[@id="div_id"]/a
1618
${link}= Get WebElement //div[@id="div_id"]/a
1719
Should Be Equal @{links}[0] ${link}
20+
21+
Get Web Element Should Fail If Element Is Not Found
1822
Run Keyword and Expect Error
1923
... Element with locator 'id=non_existing_elem' not found.
2024
... Get WebElement id=non_existing_elem

0 commit comments

Comments
 (0)