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
    شكرا للمشاهدة

ความคิดเห็น • 103

  • @anshikasingh8597
    @anshikasingh8597 3 ปีที่แล้ว +2

    Thank you thank you ...I was trying this for last 2 weeks...;)

  • @mehulbrahmbhatt7197
    @mehulbrahmbhatt7197 2 ปีที่แล้ว +1

    Best video to learn automation. It is very helpful. Thanks for the detail video!!

  • @VipulDessaiBadGAMERbaD
    @VipulDessaiBadGAMERbaD 4 ปีที่แล้ว +1

    Well Explained, i'm completely new to java, yet the instructions in the video are very clear.

  • @kalaiarasineelamegam6009
    @kalaiarasineelamegam6009 2 ปีที่แล้ว

    Great much much helpful... even i am seeing this video in 2021 dec... It helped me alot... thanku naveen

  • @narmadhanaru7970
    @narmadhanaru7970 5 ปีที่แล้ว +2

    Naveen,You have great skill of explaining..Thanks for the wonderful video with clarity knowledge

    • @naveenautomationlabs
      @naveenautomationlabs  5 ปีที่แล้ว

      Thanks for watching

    • @narmadhanaru7970
      @narmadhanaru7970 5 ปีที่แล้ว +1

      @@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?

    • @naveenautomationlabs
      @naveenautomationlabs  5 ปีที่แล้ว

      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.

    • @narmadhanaru7970
      @narmadhanaru7970 5 ปีที่แล้ว

      @@naveenautomationlabs I have mailed you Naveen. Could you please reply?

  • @nitinpatil5541
    @nitinpatil5541 3 ปีที่แล้ว +1

    Thank u so much Naveen sir, Its really helpful :)

  • @kbalakumar10
    @kbalakumar10 2 ปีที่แล้ว

    Thank you so much. I did not know what I did wrong but after following your steps it worked. Helped me a lot.

  • @Sumith.S
    @Sumith.S 2 ปีที่แล้ว

    Thanks Naveen, I didn't even tthink this was so simple :)

  • @seekprateek8
    @seekprateek8 6 ปีที่แล้ว +1

    Awesomely explained Naveen. Thank you so much😊

  • @RISHABARU
    @RISHABARU หลายเดือนก่อน

    good explanation , it worked 👍

  • @rakshithamanjunath5159
    @rakshithamanjunath5159 3 ปีที่แล้ว +1

    thank you this was so helpful

  • @neb6304
    @neb6304 4 ปีที่แล้ว +1

    thanks! :) now i can finally autofill my orders xd

  • @arunbala2805
    @arunbala2805 3 ปีที่แล้ว

    nice, simple quick demo, easy to understand maven project

  • @tanujajaiswal2361
    @tanujajaiswal2361 3 ปีที่แล้ว

    Thank you Naveen. This is really very helpful.

  • @rajat_shandilya
    @rajat_shandilya 6 ปีที่แล้ว +1

    Thanks a lot sir . Your videos are very helpful.

  • @dineshvelayudham3423
    @dineshvelayudham3423 4 ปีที่แล้ว +1

    Thank you So much Naveen.

  • @GoofyJSM02
    @GoofyJSM02 5 ปีที่แล้ว +1

    Thank you, this certainly save me some time.

  • @natureNanimallover115
    @natureNanimallover115 2 ปีที่แล้ว

    Thanks u so much your video always helps

  • @PriyaSude
    @PriyaSude 3 ปีที่แล้ว

    Thank you so much ...so useful for beginners

  • @real_hello_kitty
    @real_hello_kitty 4 ปีที่แล้ว +1

    Thumb up 👍.

  • @emh1164
    @emh1164 5 หลายเดือนก่อน

    Which is best to perform web driver interface or web action 😢

  • @balusubramanya1965
    @balusubramanya1965 2 ปีที่แล้ว

    Thanks! Nice explanation.

  • @azharkhan7598
    @azharkhan7598 ปีที่แล้ว

    Nice one sir

  • @WhiteKnight_OG
    @WhiteKnight_OG 9 หลายเดือนก่อน

    Perfect Sir

  • @ranajoymukherjee2477
    @ranajoymukherjee2477 3 ปีที่แล้ว +1

    Naveen you are great ....I need your assistance

  • @user-lh4br9zw9b
    @user-lh4br9zw9b ปีที่แล้ว

    Nice explanation

  • @granand
    @granand 4 ปีที่แล้ว +1

    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.

  • @-Prasanthi-ii9nx
    @-Prasanthi-ii9nx 3 ปีที่แล้ว

    Thank you so much it helped me

  • @reubenprasanth271
    @reubenprasanth271 ปีที่แล้ว

    Thanks a lot this helped.

  • @pubgkidukaan9346
    @pubgkidukaan9346 3 ปีที่แล้ว

    Thanks naveen

  • @princetripathi7949
    @princetripathi7949 3 ปีที่แล้ว

    Thanks really good !!

  • @Arasuari
    @Arasuari 2 ปีที่แล้ว

    Thank you Sir.

  • @adityanchatterjee
    @adityanchatterjee 6 ปีที่แล้ว +2

    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.

  • @chandankumar-vj4im
    @chandankumar-vj4im 4 ปีที่แล้ว +1

    Adding selenium java depemdency
    org.seleniumhq.selenium
    selenium-java
    3.12.0

    getting error in pom.xml

  • @zaidshaikh-gw5sb
    @zaidshaikh-gw5sb ปีที่แล้ว

    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

  • @dibyajyotinayaknayak5241
    @dibyajyotinayaknayak5241 26 วันที่ผ่านมา

    thanks bro

  • @rajatnarang5683
    @rajatnarang5683 2 ปีที่แล้ว

    Hi sir please need a help maine same code likha hai jaiae apne bola but my program is not running

  • @divyashamohanta7761
    @divyashamohanta7761 4 ปีที่แล้ว

    Thanks a lot Sir

  • @sweekriti3076
    @sweekriti3076 3 ปีที่แล้ว

    Hi Naveen,
    I am not seeing quickstart artifact I'd .what to do..please suggest..I am stuck here
    Thanks

  • @meenumangai5915
    @meenumangai5915 6 ปีที่แล้ว +1

    Hi naveen, can you please upload video related to Ajax handling with selenium. Thanks in advance

  • @geethamaddirala
    @geethamaddirala 6 ปีที่แล้ว +2

    After downloading chromedriver. How did u get directly system.properties witout adding.

    • @geethamaddirala
      @geethamaddirala 6 ปีที่แล้ว

      Not able to getting run as java application . N testng also

  • @truptigarotkar3557
    @truptigarotkar3557 4 ปีที่แล้ว

    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

  • @bultibulti6716
    @bultibulti6716 ปีที่แล้ว

    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.

  • @shivanshusharma20.07
    @shivanshusharma20.07 4 ปีที่แล้ว

    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

  • @sudharsansusan7505
    @sudharsansusan7505 4 ปีที่แล้ว

    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

  • @jiniapailan4117
    @jiniapailan4117 ปีที่แล้ว

    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.😢

  • @snehalkalugade2955
    @snehalkalugade2955 4 ปีที่แล้ว

    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.

  • @michellecortes1176
    @michellecortes1176 3 ปีที่แล้ว +1

    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)

    • @syedarmaghanhassan4652
      @syedarmaghanhassan4652 11 หลายเดือนก่อน

      did you try using WebDriverManager? It takes over the version import and does it automatically now with Selenium 4.

  • @renukadevi4380
    @renukadevi4380 3 ปีที่แล้ว

    Unable to create maven Projects after downloading the Plugins throwing an error couldnot resolve arctype org.apache.archtypes.maven..can you help on this

  • @suganyak6232
    @suganyak6232 5 ปีที่แล้ว

    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

  • @HeyMani92
    @HeyMani92 5 ปีที่แล้ว

    hello team
    The way teaching is very good and i like it.
    ple Zoom you screen and i understood but little bit confusion .

    • @prabinkumarsahu2117
      @prabinkumarsahu2117 5 ปีที่แล้ว

      Use PC with high resolution.. it's working bro..

  • @asimbera3721
    @asimbera3721 6 ปีที่แล้ว +1

    Hi Naveen..How can i get access to the paid videos.Please share the details

  • @vundavallisrinu530
    @vundavallisrinu530 3 ปีที่แล้ว

    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

  • @sanjuk2484
    @sanjuk2484 3 ปีที่แล้ว

    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

  • @kanikapandey9372
    @kanikapandey9372 ปีที่แล้ว

    do you take classes as well if yes please share info

  • @amberbhatnagar3008
    @amberbhatnagar3008 4 ปีที่แล้ว

    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?

  • @gayathris9875
    @gayathris9875 3 ปีที่แล้ว

    When you click Maven "Update the Project" JRE System Library changes got reverted . Is that Okay ?

  • @harshakalal529
    @harshakalal529 8 หลายเดือนก่อน

    Where did all the selenium videos go??

  • @aparnamohanty9375
    @aparnamohanty9375 5 ปีที่แล้ว +1

    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.

    • @sathyar8160
      @sathyar8160 5 ปีที่แล้ว

      Hi, have you got this issue resolved? Me too facing the same. Couldn't get a way to resolve this.

    • @VipulDessaiBadGAMERbaD
      @VipulDessaiBadGAMERbaD 4 ปีที่แล้ว

      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

  • @aishwaryakale2444
    @aishwaryakale2444 5 ปีที่แล้ว

    Hi Naveen,
    I am getting error : "Could not get the value for parameter encoding for plugin execution default resources". Please help

  • @amberbhatnagar3008
    @amberbhatnagar3008 4 ปีที่แล้ว

    And also can you please give me the best eclipse which is stable for automation testing?

  • @ashwinib5017
    @ashwinib5017 3 ปีที่แล้ว

    Hi Naveen , why not add chrome exe as dependency in Maven ?

  • @pavankl2518
    @pavankl2518 4 ปีที่แล้ว

    Hi, can we use maven only for adding dependency?

  • @prasannabharani8386
    @prasannabharani8386 2 ปีที่แล้ว

    nice duration..

  • @kidsadventures2001
    @kidsadventures2001 3 ปีที่แล้ว

    Hi Naveen, Is it possible for you to provide hands on help for selenium

  • @ramangandhi4221
    @ramangandhi4221 5 ปีที่แล้ว

    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

  • @user-xs2ws6bf6g
    @user-xs2ws6bf6g ปีที่แล้ว

    Hello Sir, I did the same but getting Launching error

  • @sachinjagtap4983
    @sachinjagtap4983 4 ปีที่แล้ว

    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??

    • @naveenautomationlabs
      @naveenautomationlabs  4 ปีที่แล้ว

      Wow, ask this question to TH-cam. And how is it related to earning?

    • @sachinjagtap4983
      @sachinjagtap4983 4 ปีที่แล้ว

      @@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...

  • @sutharsansadhasivam2401
    @sutharsansadhasivam2401 3 ปีที่แล้ว

    Can you please please please say me how to run this with pom.xml file

  • @dilipbiradar9260
    @dilipbiradar9260 4 ปีที่แล้ว

    my chromedriver path a incorrect m stuck with it

  • @ramidaoud3776
    @ramidaoud3776 3 ปีที่แล้ว

    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?

  • @ponkumare1898
    @ponkumare1898 3 ปีที่แล้ว

    Can you please upload video for maven project of sikuli with selenium webdriver?

  • @vkiranmayi7096
    @vkiranmayi7096 6 ปีที่แล้ว

    can you tell me how can we add dependencies of firefoxbrowser instead of chrome

  • @prabinkumarsahu2117
    @prabinkumarsahu2117 5 ปีที่แล้ว +1

    Hello Naveen, can u make a video about how can we handle windows based pop up using selenium.

  • @abhilashr7233
    @abhilashr7233 5 ปีที่แล้ว

    How to get the path for .exe file which resides in src/main/resources
    ?
    Thanks in Advance

  • @abishekkachroo938
    @abishekkachroo938 5 ปีที่แล้ว

    what is groupId what is artifact Id where to give the build path and why to give the build path

  • @ramangandhi4221
    @ramangandhi4221 5 ปีที่แล้ว

    at WebDriver driver = new FirefoxDriver(); it give error and give suggestion for creating firefox class

  • @asjadazeez
    @asjadazeez 3 ปีที่แล้ว

    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 ?

  • @divyjain4564
    @divyjain4564 6 ปีที่แล้ว +1

    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

  • @SoftwareTestingByMounika
    @SoftwareTestingByMounika ปีที่แล้ว

    Hii

  • @anandgupta-gu4ek
    @anandgupta-gu4ek ปีที่แล้ว

    Sir i want to learn automation how to start in basic pls help me

  • @prabhuthavamani8921
    @prabhuthavamani8921 2 ปีที่แล้ว

    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'