How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Training | Edureka

Поділитися
Вставка
  • Опубліковано 17 тра 2018
  • 🔥 Edureka Selenium Training (Use Code "𝐘𝐎𝐔𝐓𝐔𝐁𝐄𝟐𝟎") : www.edureka.co/selenium-certi...
    This Edureka Selenium tutorial video (Selenium Blog Series: goo.gl/VGBJHx) on "How to Write & Run a Test Case in Selenium" will give you an introduction to automated software testing tool - Selenium. Watch the video till the end, this selenium tutorial will help you in writing and running your first Test Case using Selenium.
    For doubts & queries on Selenium, post the same on Edureka Community: www.edureka.co/community/sele...
    Introduction to Selenium blog: goo.gl/b523IO
    Check our complete Selenium playlist here: goo.gl/NmuzXE
    Facebook: / edurekain
    Twitter: / edurekain
    LinkedIn: / edureka
    #Selenium #SeleniumAutomation #SeleniumTesting #SeleniumTutorial #SeleniumTraining
    🔴 𝐋𝐞𝐚𝐫𝐧 𝐓𝐫𝐞𝐧𝐝𝐢𝐧𝐠 𝐓𝐞𝐜𝐡𝐧𝐨𝐥𝐨𝐠𝐢𝐞𝐬 𝐅𝐨𝐫 𝐅𝐫𝐞𝐞! 𝐒𝐮𝐛𝐬𝐜𝐫𝐢𝐛𝐞 𝐭𝐨 𝐄𝐝𝐮𝐫𝐞𝐤𝐚 𝐘𝐨𝐮𝐓𝐮𝐛𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥: edrk.in/DKQQ4Py
    - - - - - - - - - - - - - -
    How it Works?
    1. This is a 5 Week Instructor led Online Course, 20 hours of assignment and 30 hours of project work
    2. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course.
    3. At the end of the training you will have to undergo a 2-hour LIVE Practical Exam based on which we will provide you a Grade and a Verifiable Certificate!
    - - - - - - - - - - - - - -
    About the Course:
    Selenium is the most popular tool used to automate the testing of web applications. In this Course, you will learn about Selenium 3.0 and its various components such as Selenium IDE, Selenium WebDriver, and Selenium GRID. You learn to set up your environment so that you are ready to start using Selenium for testing your web applications. Browsers such as Chrome, Firefox, and IE are used to test the web applications. In addition, you will experience to work with Selenium IDE, Selenium WebDriver, Selenium GRID, different frameworks such as Data Driven, Keyword Driven, Hybrid and Cross browser testing.
    Page Object Model (POM) is a design pattern that enables you to maintain reusability and readability of the automation scripts. This course introduces you to the concept of POM, and how to implement Page Classes and Page Factory to optimize the execution of automated scripts. In addition, you learn about various third-party tools such as Jenkins, TestNG, Sikuli, and AutoIT to optimally use them for performing various tasks in our browsers such as working with flash applications or Windows-based UI elements. Finally, you get introduced to Appium, an open source mobile application UI testing framework, and UIautomatorviewer.
    - - - - - - - - - - - - - -
    Who should go for this course?
    Selenium is a new and booming Technology in Software Industry that helps you automate the testing of your applications. Professionals with basic knowledge of Object Oriented Programming can easily take up this course.
    - - - - - - - - - - - - - -
    Why learn Selenium?
    For any project, Companies are rapidly inclining towards open source automated testing tools that will enable them to cut down the cost and effort that manual testing involves. Selenium is one such open source automated testing tool for websites. Performance, execution speed, and browser interaction of Selenium is too fast than any other automation tool. The test packages, the Modes of Selenium available for unattended execution, and the fact that the text script can be developed in any of the language that Selenium supports; makes Selenium the most desired automation testing tool. In addition, Selenium supports different operating systems along with support for different programming languages such as Python, Pearl, Ruby, PHP, .NET, C#, and Java; and various browsers, thereby making Selenium ahead of any other Automation tool.
    - - - - - - - - - - - - - -
    For more information, Please write back to us at sales@edureka.co or call us at IND: 9606058406 / US: 18338555775 (toll free).
    - - - - - - - - - - - - - -
    Customer Review:
    Tom Tully says, “I wanted to learn Selenium Webdriver in a live, real course, not self-paced, so there would be pressure on me to finish. Edureka accomplished this at a price far lower than an in-person class, and as far as I know they are the only internet class that has live lectures on this subject. Teacher was very knowledgeable. I learned basic use of Selenium. No problem with me being in US and teacher in India. They have US 800 number.”

КОМЕНТАРІ • 122

  • @edurekaIN
    @edurekaIN  6 років тому +14

    Got a question on the topic? Please share it in the comment section below and our experts will answer it for you. For Selenium Training and Certification Curriculum, Visit our Website: bit.ly/349QpMP

  • @jayasheelapanthagani8908
    @jayasheelapanthagani8908 4 роки тому +19

    I really liked the way the step by step sequence explained in this video!! Truly appreciate and highly recommend this videp. Thank you so much!!!

  • @wordherder
    @wordherder 4 роки тому +22

    Thank you for this! It's concise, quick, and easy to follow.

  • @hivasoofieh6921
    @hivasoofieh6921 2 роки тому +38

    I just wanted to know what Selenium is but I got much more of this video. I even saw a complete test case and understood it. this video was really helpful. Thank you so much!!!❤❤❤❤❤❤

    • @edurekaIN
      @edurekaIN  2 роки тому +2

      Hi : ) We really are glad to hear this ! Truly feels good that our team is delivering and making your learning easier :) Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @winwinindiamyindia9980
    @winwinindiamyindia9980 3 роки тому +8

    Great tutorial for quick learning and kick start ..being a java guy now able to write the test cases.. many thanks

  • @AmirImam01
    @AmirImam01 4 роки тому +7

    Very helpful you are such an amazing instructor, thanks for this tutorial
    Best regards.

  • @NatarajanAV
    @NatarajanAV 5 років тому +3

    Great & simple video to understand basics of Selenium!

  • @aneuryperez
    @aneuryperez 4 роки тому +5

    thank you for the video, excellent, very helpful specially for beginners.

  • @mitheep9497
    @mitheep9497 4 роки тому +6

    Awesome. This looks so interesting and fascinating. Thank you for such an excellent video.

    • @edurekaIN
      @edurekaIN  4 роки тому +1

      Thanks for the compliment, Mithee. Don't forget to subscribe our channel bit.ly/edurekaUA-cam

  • @prajjwaltalwaray
    @prajjwaltalwaray 4 роки тому +4

    Very helpful.....thanks a lot!🙌🏻

  • @abhilashabhalerao3204
    @abhilashabhalerao3204 4 роки тому +5

    Well Explained..
    Thanks a lot🙌

  • @abassiahmed9008
    @abassiahmed9008 4 роки тому +9

    extremely good tutorial for beginners

  • @sowmiyar2910
    @sowmiyar2910 4 роки тому +1

    Wow... Nice way ur teaching.. Thank you:)

  • @satishuppin1482
    @satishuppin1482 3 роки тому +2

    Useful training..happy to learn.

  • @zakir7719
    @zakir7719 5 років тому +7

    Useful demo session Happy to learn

  • @peterblom4766
    @peterblom4766 5 років тому +1

    Thx very useful. Greetings from Holland

  • @safrozeafroze5589
    @safrozeafroze5589 4 роки тому +1

    Very well explained...extremely helpful video..

  • @missakaherath78
    @missakaherath78 4 роки тому +3

    Well explained, thankyou!

  • @farrukhahmedsid
    @farrukhahmedsid 3 роки тому

    Very helpful to know Selenium and how it works..

  • @gabrielmayta2297
    @gabrielmayta2297 4 роки тому +4

    Great explanation, very detailed.

  • @sarahrai7913
    @sarahrai7913 3 роки тому

    Very helpful tutorial thank you so much.

  • @TheAnnavincent
    @TheAnnavincent 5 років тому +3

    Thanks for the video

  • @nuranamirzaghayeva8730
    @nuranamirzaghayeva8730 5 років тому +3

    Thanks a lot!

  • @PradeepKumar-ps4cs
    @PradeepKumar-ps4cs 3 роки тому

    Best presenter and nice demo.

  • @natashasamuel9346
    @natashasamuel9346 2 роки тому +1

    Great class.
    Keep up the good work.
    Thank You,
    Natasha Samuel

    • @edurekaIN
      @edurekaIN  2 роки тому

      Great to see that our videos and contents are making you perform better and understand better :) We are glad that you've enjoyed your learning experience with us .Thank you for being a part of Edureka's team:) Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @kapilnassa3743
    @kapilnassa3743 3 роки тому

    Amazing!! tutorial 👏👏

  • @aamirusmani9810
    @aamirusmani9810 4 роки тому +1

    very nice explanation for beginners

  • @kalavathiskitchen
    @kalavathiskitchen 3 роки тому +1

    Thank you and easy to understand

  • @CWNC
    @CWNC 4 роки тому

    Excellent tutorial.

  • @mahesh215
    @mahesh215 2 роки тому

    Very nice tutorial with step by step clear explanation of everything... 👍

    • @edurekaIN
      @edurekaIN  2 роки тому

      Hey:) Thank you so much for your sweet words :) Really means a lot ! Glad to know that our content/courses is making you learn better :) Our team is striving hard to give the best content. Keep learning with us -Team Edureka :) Don't forget to like the video and share it with maximum people:) Do subscribe the channel:)

  • @ramatalwadker
    @ramatalwadker Рік тому +1

    Thanks for the tutorial. Just that instead of webdriver I used chromedriver and it worked

    • @edurekaIN
      @edurekaIN  Рік тому

      You're Welcome 😊 Glad it was helpful!!

  • @lorenzcobretti9862
    @lorenzcobretti9862 Рік тому

    thank you! i'm transitioning from manual to automation testing. what a heads up!

    • @edurekaIN
      @edurekaIN  Рік тому

      We are super happy that Edureka is helping you learn better. Your support means a lot to us and it motivated us to create even better learning content and courses experience for you . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @shwetapatil269
    @shwetapatil269 3 роки тому +1

    Very easy to understand... thank you...👍

    • @edurekaIN
      @edurekaIN  3 роки тому

      Thanks a lot for the review .We look forward to continue to make informative content on our channel :)Thank you for visiting our channel , Do subscribe our channel and hit that bell icon to never miss an video from our channel .

  • @zacharychow8485
    @zacharychow8485 3 роки тому +1

    Thank you very much!

  • @CDinuwan
    @CDinuwan 3 роки тому

    Thanks you for this!

  • @Eruton136
    @Eruton136 3 роки тому

    Excellent video!

  • @shitalkd4766
    @shitalkd4766 2 роки тому +1

    Good explaination 👌👌

  • @karishmashrestha5932
    @karishmashrestha5932 4 роки тому

    short and lucid explanation

  • @dexterousfille5501
    @dexterousfille5501 2 роки тому

    You guys doing the best❤️

    • @edurekaIN
      @edurekaIN  2 роки тому

      Thank you for your review : ) We are glad that you found our videos /contents useful . We are also trying our best to further fulfill your requirements and enhance your expirence :) Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @sridevi-jp3ic
    @sridevi-jp3ic 4 роки тому

    Thank you so much 🙏

  • @bhuvanmishra13
    @bhuvanmishra13 3 роки тому

    Awesome Video! Thanks a lot! :)

    • @edurekaIN
      @edurekaIN  3 роки тому

      Thanks a lot for the review .We look forward to continue to make informative content on our channel :)Thank you for visiting our channel , Do subscribe our channel and hit that bell icon to never miss an video from our channel .

  • @desireehare2807
    @desireehare2807 Рік тому +1

    Thank you for an excellent tutorial. Are all these versions still relevant 4 years later?

    • @edurekaIN
      @edurekaIN  Рік тому

      "Yes ! Good to know your learning with Edureka :) please share your mail id to share the data sheet! We'll Update you soon ! Do subscribe our channel for more such videos :)
      "

  • @yuvarajaa7532
    @yuvarajaa7532 3 роки тому

    well explained...Thank u soo much.

    • @edurekaIN
      @edurekaIN  3 роки тому

      Happy to hear that!We are glad to have learners like you . Do subscribe our channel and hit that bell icon to never miss an video from our channel

  • @AnushaS-pe1yw
    @AnushaS-pe1yw Рік тому +2

    thank you so much I understand very well

    • @edurekaIN
      @edurekaIN  Рік тому

      You're welcome 😊 Glad it was helpful!!

  • @naziyahaseen8770
    @naziyahaseen8770 2 роки тому

    Thanks for the clear session

    • @edurekaIN
      @edurekaIN  2 роки тому +1

      Good To know our videos are helping you learn better :) Stay connected with us and keep learning ! Do subscribe the channel for more updates : )

  • @hellowhat999
    @hellowhat999 3 роки тому +1

    Thank You very much

  • @maheshBasavaraju
    @maheshBasavaraju 2 роки тому

    Thank you. Now I know selenium 😀

    • @edurekaIN
      @edurekaIN  2 роки тому +1

      Thank you so much : ) We are glad to be a part of your learning journey. Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @RaizenPh
    @RaizenPh Рік тому +1

    Man thanks a lot! Keep it going!

  • @harish205
    @harish205 4 роки тому

    Good explanation

  • @sandeepk3323
    @sandeepk3323 4 роки тому

    i am the big fan of Endureka

  • @anantgoel4971
    @anantgoel4971 2 роки тому

    Well Explained. Good Video

    • @edurekaIN
      @edurekaIN  2 роки тому

      We are super happy that Edureka is helping you learn better. Your support means a lot to us and it motivated us to create even better learning content and courses experience for you . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @mohamedelfadli3125
    @mohamedelfadli3125 Рік тому +1

    Thank you master speedy.

    • @edurekaIN
      @edurekaIN  Рік тому

      Thank you 😊 Glad you liked it!!

  • @saikrishna.b736
    @saikrishna.b736 4 роки тому +1

    Thank you so much simple way of teaching and the way u told created more interest for me to learn selenium ...much appreciation for ur work... thank you so much for this video

    • @edurekaIN
      @edurekaIN  4 роки тому

      Hey, thanks for the wonderful feedback! We are glad we could help. Do subscribe to our channel to stay posted on upcoming tutorials.

  • @navamiravi2964
    @navamiravi2964 Рік тому +1

    Thankyou so much for this

  • @AminulSujon
    @AminulSujon 3 роки тому +1

    Nice tutorial

  • @arturo7392
    @arturo7392 4 роки тому

    Thanks!

  • @kutumb639
    @kutumb639 Рік тому +1

    Really helpful

  • @testerhui1028
    @testerhui1028 5 років тому +4

    Hello, when I click run, i get this error message :
    Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: C:\Users\erichui\Desktop\Selenium setup\.exe files\chromedriver
    I have made sure that the chrome driver is there in that folder. Am i missing something?

    • @edurekaIN
      @edurekaIN  4 роки тому +4

      Add .exe after you specify the path of ChromeDriver.

    • @DoorThief
      @DoorThief 4 роки тому +4

      You're missing the extension name for the file. It should be an executable (.exe). Also, when you do a backslash it is actually an escape character, so you may need to put two backslashes so that it is understood that you actually mean to put a backslash instead of escaping (not sure if that's the case for Java but it is for most the languages I use)

  • @hidayathullakhan8605
    @hidayathullakhan8605 4 роки тому

    Its nice

  • @Swadeep411
    @Swadeep411 Рік тому +1

    Nice explanation

    • @edurekaIN
      @edurekaIN  Рік тому

      Thank you 😊 Glad it was helpful!!

  • @sehse100
    @sehse100 3 роки тому

    Thank you

  • @vasudeo007
    @vasudeo007 4 роки тому

    I want to know which programming language works good with Selenium? Is it Java or Python?

    • @edurekaIN
      @edurekaIN  3 роки тому +1

      Java is one of the most preferred language for web automation using selenium. However nowadays demand of other programming language is also gradually increasing due to which languages like Python and C# are also in demand.

  • @hanzongtan4611
    @hanzongtan4611 5 років тому +2

    Can I use Netbeans instead of Eclipse???

    • @edurekaIN
      @edurekaIN  5 років тому +1

      Hey! Yes, you can use it. There might be some changes though.

  • @SmashedHatProject
    @SmashedHatProject Рік тому +1

    thank you for the curse!

    • @edurekaIN
      @edurekaIN  Рік тому

      You are welcome 😊 Keep learning with us!!

  • @srinivasav1875
    @srinivasav1875 2 роки тому

    How to use grid and node and also record video using selenium grid?

  • @Usernameidk555
    @Usernameidk555 3 роки тому +1

    Good

  • @Mbregs28
    @Mbregs28 4 роки тому +1

    WebDriver and ChromeDriver "can't be resolved to a type"
    I've done
    import org.openqa.selenium.chrome.*;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.chrome.ChromeDriver;
    and it's still saying they're not accessible any ideas?

    • @edurekaIN
      @edurekaIN  4 роки тому

      ChromeDriver is one extra level nested in org.openqa.selenium package. Try with import statement
      org.openqa.selenium.chrome.*;
      OR
      import org.openqa.selenium.chrome.ChromeDriver;
      shareimprove this answer
      answered Feb 21 '18 at 3:50
      Shwetank Vashishtha
      15988 bronze badges
      add a comment
      1
      The error says it all :
      ""ChromeDriver can't be resolved to a type""
      While working with Selenium 3.x you have to mention the Key-Value pair through System.setProperty() line mandatory as follows :
      System.setProperty(""webdriver.chrome.driver"", ""/path/to/chromedriver"");
      Additionally, as per best practices instead of import org.openqa.selenium.*; you have to mention the individual packages for import as follows :
      import org.openqa.selenium.WebDriver;
      import org.openqa.selenium.chrome.ChromeDriver;

  • @HHHorea
    @HHHorea 4 місяці тому

    nice!

    • @edurekaIN
      @edurekaIN  4 місяці тому

      Thank you! Cheers!

  • @ranjithcheruku8130
    @ranjithcheruku8130 5 років тому +2

    thank u

  • @vwlover5450
    @vwlover5450 3 роки тому

    Thank you . I need a crash course.

    • @edurekaIN
      @edurekaIN  3 роки тому

      Hi Kumudu Thuyakontha, we have got your request covered. Kindly follow the link: bit.ly/2MK2YL7 to our Selenium Full Course tutorial to gain structured insights. Also, if you wish to pursue a certified course in Selenium, kindly visit: bit.ly/39IRUXz and avail exclusive discounts using the code "UA-cam20". Cheers :)

  • @nainalall4262
    @nainalall4262 4 роки тому

    I am trying to setup Selenium for Java on Mac OS X.
    When I am declaring "import org.openqa.selenium.WebDriver;". It's giving me error saying
    "The package import org.openqa.selenium is accessible from more than one module."
    Please help.

    • @edurekaIN
      @edurekaIN  4 роки тому +1

      This happens when you have added the external jars in the ModulePath. To solve this, Remove the external jars from the node ""Modulepath"" and select the node ""Classpath"" then add the external jars. Then review that all the jars are under the node ""Classpath""

  • @toshinori2520
    @toshinori2520 5 років тому +1

    whats the indication that the test was successful?

    • @edurekaIN
      @edurekaIN  5 років тому +1

      Hey Harvey, The console output will indicate and also if there are no errors in the execution, it will indicate a successful test case. Hope this helps! Cheers!

    • @toshinori2520
      @toshinori2520 5 років тому

      so like in this case, if the gmail email matches the given email?

  • @shivarjunroy1394
    @shivarjunroy1394 4 роки тому +1

    Automating

  • @deep1287
    @deep1287 3 роки тому +1

    Hands-on - 15:10

  • @kisanpakhreen
    @kisanpakhreen 4 роки тому +1

    I think it is easy to write script in python than java

  • @chandanacheemakurthi8575
    @chandanacheemakurthi8575 5 років тому

    Sir it shows that webelement is not applicable for the arguments

  • @Yamaha0VMaX
    @Yamaha0VMaX 4 роки тому

    Is Android supported by Selenium ?

    • @edurekaIN
      @edurekaIN  4 роки тому +1

      Yes, the Appium has got its roots from Selenium and it uses JSONWireProtocol to interact with iOS and Android apps using Selenium's web driver. Selendroid is based on the Android Instrumentation framework where tests are written using Selenium Webdriver client API, which is also called as Selenium 2 client. Hence, it can be fully integrated with existing Selenium frameworks.

    • @Yamaha0VMaX
      @Yamaha0VMaX 4 роки тому

      @@edurekaIN >> Thanks. I will definitely look into this as I am interested in mobile testing.

  • @sheetaldheer5954
    @sheetaldheer5954 4 роки тому +1

    but helpful

  • @pankajsaw3017
    @pankajsaw3017 2 роки тому

    W e have no gf but we have edureka love U Edureka

    • @edurekaIN
      @edurekaIN  2 роки тому +1

      You're welcome 😊 Stay connected with our channel and team :) . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @uditagarwal8172
    @uditagarwal8172 4 роки тому

    my question here is
    what was this test for?? means what was it testing?? i was unable to understand.
    i anyone has the answer please reply?

    • @edurekaIN
      @edurekaIN  4 роки тому

      In the example that is shown in the video, the script was testing the title of the gmail webpage. If the expected and the actual title match, then the test is successful else it is not.

  • @ValuedValue
    @ValuedValue 3 роки тому

    Indian accent, *yes*

  • @eerosiljander4622
    @eerosiljander4622 Рік тому +1

    Great.

  • @wReeed
    @wReeed 4 роки тому

    Thanks a lot!

  • @deepakvaid920
    @deepakvaid920 4 роки тому

    Thanks for the video

  • @zinaumrshatian5739
    @zinaumrshatian5739 2 роки тому

    Thanks a lot!