Category : robotframework

Test.py test_method(): print("hello") regression.robot *** Settings *** Library libs/Test.py test.robot *** Settings *** Resource regression/regression.robot I believe I’m importing the module in the robot file properly. But still I’m getting the error "No keyword with name ‘Test Method’ found". It would be helpful if someone can advice on this. Source: Python..

Read more

Hi i am trying to loop through an ul and click on all li. How would i go about this in robotframework? Help is welcome! the html is as follows: <ul class="list" tabindex="-1" id="thelist"> <li class="item"></li> <li class="item"></li> <li class="item"></li> </ul> code: @{elements}= Get WebElements xpath://*[@id="thelist"]/div[1]/ul FOR ${element} IN @{elements} click element ${element} END Source: ..

Read more

Im getting this error today: error Previously, i didn’t get an issue. is there an update on datetime? If none, what could be the solution on my error? Thanks! My method looks like this: def calculate_age(self,n,format): born = datetime.strptime(n,format) today = date.today() return today.year – born.year – ((today.month, today.day) < (born.month, born.day)) where: format = ..

Read more

How to iterate of all the rows of the Excel sheet. ? below is my code *** Settings *** Library SeleniumLibrary Library ExcelLibrary Library Collections *** Variables *** ${path_excel} C:UserTest.xlsx *** Test Cases *** Test1 Test the ExcelData *** Keywords *** Test the ExcelData ${my_data_as_list}= Create List #open the Excel ${path_excel} open excel document filename=${path_excel} ..

Read more