Now, we have completed selenium library import. Library import in red is as good as the library does not exist inside python. In case the names do not match, the library name will be in red as shown below − The name given has to match with the name of the folder installed in site-packages. Upon clicking Library, a screen will appear wherein you need to enter the library name −Ĭlick OK and the library will get displayed in the settings. Once the installation is done, we have to import the library in Ride as shown in the below steps.Ĭlick on your project on the left side and use Library from Add Import −
Selenium library gets installed inside the lib folder in python as follows − Pip install -upgrade robotframework-seleniumlibrary You will be redirected to the github repo as shown below −įor Installation of seleniumlibrary, we can use the command from the github and install it using pip. Select External option from above and it will list you all the libraries available to be used. On the left side, select the LIBRARIES option. To work with browsers, we need selenium library to be imported in robot.
Now, we will write test cases for the browser. Right-click on the name of the project created and click on New Test Case − Open ride using ride.py from the command line.Ĭlick on New Project and give name to your project. We will first create a project in Ride to work with browsers.
In this chapter, we will learn how to work with browsers using Robot Framework and Selenium Library in ride.