Selenide Setup in Eclipse IDE

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!

Share On

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on tumblr
Share on email

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top

Lifetime Membership Club

LIFETIME MEMBERSHIP BIG SALE - ALL LIVE COURES JUST - 7000 RS/ 99 USD
Attend All Live courses in just 7000 rs / $99 - offer ends 10th Nov 2024