Tutorial 1 – Setup Selenide in Eclipse IDE
What you will Learn:
Create maven project and setup selenide
Create maven project and setup selenide
Create maven project in eclipse, follow the below screenshots
Finish.
The maven project gets created
Add below 2 lines in the pom.xml file
Navigate to below url and copy the latest (stable) selenide maven dependency
https://mvnrepository.com/artifact/com.codeborne/selenide
Paste the dependency in pom.xml
Save the xml.
You should see the selenide related jars after some time
Similarly, navigate to below url and copy the ‘testng’ dependency
https://mvnrepository.com/artifact/org.testng/testng/6.14.3
Save the xml. You should see the testng related jars
Delete the default packages under src/main/java and src/test/java
Create a new class
Add @Test Testng annotation
Navigate to the site
https://github.com/selenide/selenide/wiki/Quick-Start
Copy the 2 static imports
Paste them in your code
Now type ‘open’ keyword and hit Ctrl+Spacebar. If you see the following methods, than it means that ‘selenide’ has been successfully setup
In next blog, we will create our first script.
Thank you for reading!