Write your first Selenium WebDriver code using Maven - POM Dependency
ฝัง
- เผยแพร่เมื่อ 12 ก.ย. 2024
- In this video, you will learn about how to setup Selenium with Maven Project using POM.xml file and Selenium dependency.
--Launch chrome using chrome driver.exe file
--Setup selenium Dependency in POM.xml file
~~~Download chrome driver.exe file from here:
chromedriver.ch...
~~~Get the latest dependency from Selenium site:
docs.seleniumh...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
vimeo.com/onde... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
Thank you thank you ...I was trying this for last 2 weeks...;)
Best video to learn automation. It is very helpful. Thanks for the detail video!!
Well Explained, i'm completely new to java, yet the instructions in the video are very clear.
Great much much helpful... even i am seeing this video in 2021 dec... It helped me alot... thanku naveen
Naveen,You have great skill of explaining..Thanks for the wonderful video with clarity knowledge
Thanks for watching
@@naveenautomationlabs can you please explain what should I do to understand complete cucumber framework and cover all selenium concepts. Starting from configuration to building the script. How will it be if I join the course by paying online?
You can reach me at naveenanimation20@gmail.com. We just started the training from today onwards. We will start from basics to advanced to expert level.
@@naveenautomationlabs I have mailed you Naveen. Could you please reply?
Thank u so much Naveen sir, Its really helpful :)
Thank you so much. I did not know what I did wrong but after following your steps it worked. Helped me a lot.
Thanks Naveen, I didn't even tthink this was so simple :)
Awesomely explained Naveen. Thank you so much😊
good explanation , it worked 👍
thank you this was so helpful
thanks! :) now i can finally autofill my orders xd
nice, simple quick demo, easy to understand maven project
Thank you Naveen. This is really very helpful.
Thanks a lot sir . Your videos are very helpful.
Thank you So much Naveen.
Thank you, this certainly save me some time.
Thanks u so much your video always helps
Thank you so much ...so useful for beginners
Thumb up 👍.
Which is best to perform web driver interface or web action 😢
Thanks! Nice explanation.
Nice one sir
Perfect Sir
Naveen you are great ....I need your assistance
Nice explanation
Hi Naveen Thank you very much. I really like presentation skills. However I have a question, Instead of downloading chrome webdriver, why not let maven pick it, if we give this in the dependency, I see a chrome driver in maven repository. I think there is some disconnect in my understanding, so how to decide which dependencies to download and which dependencies i can use Maven to download.
Thank you so much it helped me
Thanks a lot this helped.
Thanks naveen
Thanks really good !!
Thank you Sir.
Hi Naveen,
It was a really helpful video.
However, I ran into an issue. I have windows10. Chrome version 67 and chrome driver version is 2.40. Every time I am trying to launch I am getting not secure: data. It will be really great if you could have a look. I been searching online, couldn't find any thing solid.
Adding selenium java depemdency
org.seleniumhq.selenium
selenium-java
3.12.0
getting error in pom.xml
why there are different folders created by maven like src/main,src/test and if we store pom classes in src/main and test classes in src/test will it cause any problem to call methods as they are different folders if if yes then how to solve it
thanks bro
Hi sir please need a help maine same code likha hai jaiae apne bola but my program is not running
Thanks a lot Sir
Hi Naveen,
I am not seeing quickstart artifact I'd .what to do..please suggest..I am stuck here
Thanks
Hi naveen, can you please upload video related to Ajax handling with selenium. Thanks in advance
After downloading chromedriver. How did u get directly system.properties witout adding.
Not able to getting run as java application . N testng also
I am just comparing its behaviour with node js test library , how we can make this chrome driver installation portable as we need to give chrome driver local path of your system
Do i need to download and add the selenium jar file and import in maven project or jut add as dependency in pom file. Ex: in standalone jave project we need to add the selenium jar.
Getting this error after deleting . m2 folder also:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Hi Naveen ,I have created maven project ,added selenium dependencies and all on POM but I m getting some error while executing basic code of selenium,getting noclassdeffound error
Hi @naveen.
I am getting nullSessionException for selenium grid. Can u plz help???
Some window size issue.. I tried driver.window.manage.maximum
But didn't work.😢
Hi Naveen, how to set auto detect settings url for maven. Can we do it in settings.xml or any other approach needs to be followed. Please guide.
Hi Naveen, been trying to run my maven project on Azure DevOps, but I keep on getting this error on the maven build task. This happens even when the actual chromedriver.exe file is actually existing in the mentioned path
java.lang.IllegalStateException: The driver executable does not exist: C:\Program Files\selenium\chromedriver_win32_new\chromedriver.exe
at UnitTest.AddDelegate.openBrowser(AddDelegate.java:21)
did you try using WebDriverManager? It takes over the version import and does it automatically now with Selenium 4.
Unable to create maven Projects after downloading the Plugins throwing an error couldnot resolve arctype org.apache.archtypes.maven..can you help on this
Hi naveen I start now on selenium I have one error for cucumber framework on test runner class the error is found, the error is classcannot be resolved how retrieved it pls help me out
hello team
The way teaching is very good and i like it.
ple Zoom you screen and i understood but little bit confusion .
Use PC with high resolution.. it's working bro..
Hi Naveen..How can i get access to the paid videos.Please share the details
Hi sir , I am getting error in pom.xml file and unable to see java build path option in properties section. Can u pls help me
I am getting error like "could not resolve archetype org.apache.maven.archetype:maven-archetype-quickstart:1.1 from any of the configured repositories.. Like that i am getting.. What should I do
do you take classes as well if yes please share info
Hi, while creating maven project I am getting following error: Failed to create project.
clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+
Can you please help me in creating a maven project?
When you click Maven "Update the Project" JRE System Library changes got reverted . Is that Okay ?
Where did all the selenium videos go??
Hi Naveen , I am getting error while adding maven project - could not resolve archetype - maven.archetype-quickstart:1.1 from any of the configured repositories.
Please help me.
Hi, have you got this issue resolved? Me too facing the same. Couldn't get a way to resolve this.
at "Select an Archetype" step, try selecting the checkbox "include snapshot archetypes", and then searching maven-archetype-quickstart and select the org.apache.maven.archetypes
Hi Naveen,
I am getting error : "Could not get the value for parameter encoding for plugin execution default resources". Please help
And also can you please give me the best eclipse which is stable for automation testing?
Hi Naveen , why not add chrome exe as dependency in Maven ?
Hi, can we use maven only for adding dependency?
nice duration..
Hi Naveen, Is it possible for you to provide hands on help for selenium
for window chromedriver window32 bit file available and window 7 is 64 bit, so what file I need to download or 32 bit will work
link chromedriver.storage.googleapis.com/index.html?path=75.0.3770.8/
please reply
Hello Sir, I did the same but getting Launching error
Why video quality is such a low, I need to look in 720 to 1080px then some how it is clear, is it earning strategy??
Wow, ask this question to TH-cam. And how is it related to earning?
@@naveenautomationlabs ha ha really Sorry Naveen.. but every time i unable to see clearly below 720 Pxl.. i thought looking in higher quality wood make more points to TH-cam...
Can you please please please say me how to run this with pom.xml file
my chromedriver path a incorrect m stuck with it
why do I need to download the chrome driver if the dependency is automatically updated by maven? does that mean I have to update chrome driver whenever there is an update meaning maven will not take care of that?
WebDriver Dependency will be helpful
Can you please upload video for maven project of sikuli with selenium webdriver?
can you tell me how can we add dependencies of firefoxbrowser instead of chrome
Hello Naveen, can u make a video about how can we handle windows based pop up using selenium.
How to get the path for .exe file which resides in src/main/resources
?
Thanks in Advance
what is groupId what is artifact Id where to give the build path and why to give the build path
at WebDriver driver = new FirefoxDriver(); it give error and give suggestion for creating firefox class
Hello Sir, I am new to automation testing with selenium. Could you please tell me the difference between using the xml and the chrome exe. I mean not the code syntax, but functionally how they are different ?
Hi Naveen,
Great work and great explanation !!
Thanks much
I have 1 doubt related to extent report . You have shared 2 videos on extent report
1) th-cam.com/video/m4rjnOxqcjg/w-d-xo.html
Here we are just adding the extent report listener and map it in testng so based on testng execution , it is generating the report. In this case if we want to add screenshot as well , we can add webdrivereventlistener or testngeventlistener but its not attaching to extent report
2) th-cam.com/video/D4FkhMrO9fw/w-d-xo.html
In this video, you showed how to attach screenshot to extent report
Now query is which one of above is more effective way to add report
Thanks in advance,
Divy Jain
Hii
Sir i want to learn automation how to start in basic pls help me
I got this error Naveen=Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 102
Current browser version is 101.0.4951.54 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Build info: version: '4.1.4', revision: '535d840ee2'
use webdriver managager dependency