We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7974c6b commit bc344b9Copy full SHA for bc344b9
atest/acceptance/keywords/elements.robot
@@ -5,16 +5,20 @@ Resource ../resource.robot
5
Library String
6
7
*** Test Cases ***
8
-Get Elements
+Get Many Elements
9
@{links}= Get WebElements //div[@id="div_id"]/a
10
Length Should Be ${links} 12
11
+
12
+Get Zero Elements
13
${no_elements} = Get WebElements id:non_existing_elem
14
Should Be Empty ${no_elements}
15
16
Get Web Element
17
18
${link}= Get WebElement //div[@id="div_id"]/a
19
Should Be Equal @{links}[0] ${link}
20
21
+Get Web Element Should Fail If Element Is Not Found
22
Run Keyword and Expect Error
23
... Element with locator 'id=non_existing_elem' not found.
24
... Get WebElement id=non_existing_elem
0 commit comments