@@ -20,21 +20,17 @@ Search Robotframework Selenium2Library
20
20
Google.Search.Search String Robotframework Selenium2Library Java
21
21
22
22
Search With JavaScript Locator
23
- SeleniumLibrary.Add Location Strategy elementById return window.document.getElementById (arguments[0]);
24
- Input Text elementById:lst-ib Robotframework Selenium2Library Java
25
- Press Key elementById:lst-ib \\13
23
+ SeleniumLibrary.Add Location Strategy elementByName return window.document.getElementsByName (arguments[0])[0] ;
24
+ Input Text elementByName:q Robotframework Selenium2Library Java
25
+ Press Key elementByName:q \\13
26
26
Wait Until Element Is Visible xpath://a[contains(.,'MarkusBernhardt')]
27
27
Capture Page Screenshot
28
-
29
- Search With JavaScript Locator Text
30
- SeleniumLibrary.Add Location Strategy text return window.document.evaluate("//*[contains(@value,'" + arguments[0] + "')]", window.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
31
- Wait Until Element Is Visible text:Google
32
28
33
29
Search Without Locator Type
34
- Input Text lst-ib Robotframework Selenium2Library Java
35
- Press Key lst-ib \\13
30
+ Input Text q Robotframework Selenium2Library Java
31
+ Press Key q \\13
36
32
Wait Until Element Is Visible //a[contains(.,'MarkusBernhardt')]
37
33
38
- Get Id Of Active Element With JavaScript
39
- Input Text lst-ib Robotframework Selenium2Library
40
- ${activeElementId } = Execute JavaScript return window.document.activeElement.id ;
34
+ Get Name Of Active Element With JavaScript
35
+ Input Text q Robotframework Selenium2Library
36
+ ${activeElementId } = Execute JavaScript return window.document.activeElement.name ;
0 commit comments