I am working on robotframework with java There are several keywords which are working but then i have below Get Weblememts keyword, which is not getting executed when i see in report. And build is success
${all_Endpoints}= Get WebElements //div[contains(@class,'rt-tr table__row--medium')][@role='row']/div[2]/button1/span1
The above locator matches 11 webelements
Same behavior when i use Get List Items. I am using latest version of SeleniumLibrary and robot framework.Please help
My robot file is as below
*** Keywords ***
Go to Enterprise tab and verify software list
Sleep 2s
Click Link ${lnk_enterpriseLink}
Page Should Contain Select software
Page Should Contain Endpoints
Sleep 2s
Input Text ${ent_software_dropdown} APM
Press Key ${ent_software_dropdown} \ue015
Press Key ${ent_software_dropdown} \ue007
Input Text ${ent_software_env} PRD
Press Key ${ent_software_env} \ue015
Press Key ${ent_software_env} \ue007
Sleep 2s
${all_Endpoints}= Get List Items //div[contains(@class,'rt-tr table__row--medium')][@role='row']/div[2]/button[1]/span[1]
Sleep 4s
And in POM i have below dependencies
<dependency>
<groupId>com.github.hi-fi</groupId>
<artifactId>robotframework-seleniumlibrary</artifactId>
<version>3.141.59.26535</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>C:\Program Files\Java\jdk1.8.0_221\lib\tools.jar</systemPath>
</dependency>
<dependency>
<groupId>org.robotframework</groupId>
<artifactId>robotframework</artifactId>
<version>4.1.2</version>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython</artifactId>
<version>2.7.0</version>
</dependency>
and below is report Log Report
Maybe you should update SeleniumLibrary to be more in sync with RobotFramework version you use (4.1.2). But below change implies upgrading Java to version 11.
Read documentation at: https://github.com/MarketSquare/robotframework-seleniumlibrary-java