File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Selenium2Library/keywords Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def get_webelement(self, locator):
2626
2727 See `introduction` for details about locating elements.
2828 """
29- return self .get_webelements (locator )[ 0 ]
29+ return self ._element_find (locator , True , True )
3030
3131 def get_webelements (self , locator ):
3232 """Returns list of WebElement objects matching locator.
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ Get Elements
77 @{links } = Get WebElements //div[@id="div_id"]/a
88 Length Should Be ${links } 11
99
10- Get First Matching Element
10+ Get Web Element
1111 @{links } = Get WebElements //div[@id="div_id"]/a
1212 ${link } = Get WebElement //div[@id="div_id"]/a
13- LOG @{links } [0 ]
14- LOG ${link }
1513 Should Be Equal @{links } [0 ] ${link }
14+ Run Keyword and Expect Error ValueError: Element locator 'id=non_existing_elem' did not match any elements.
15+ ... Get WebElement id=non_existing_elem
1616
1717More Get Elements
1818 [Setup] Go To Page "forms/prefilled_email_form.html"
You can’t perform that action at this time.
0 commit comments