How to Create Base Class in Selenium Webdriver

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

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

  • @pankajsolanki1658
    @pankajsolanki1658 7 ปีที่แล้ว +1

    I simply love the way it is being detailed out. Even the beginners can understand what's happening and it's a big help. Unlike other discussion forums where people discuss stuff that appears so abstract to new comers that quitting appear lucrative.
    Brilliant....

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Pankaj this comment made my day today, Thank you so much.

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

    super anna just few days back i was started selenium learning evryone posting by using tuff words a fresher can not understand but ur code its clearly understanding thanks

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

      Thanks Nishanth you made my day. Keep learning.

  • @nagagsalka5371
    @nagagsalka5371 8 ปีที่แล้ว

    Mukesh,
    Your every lecture is so cool, and all lectures are big time help for me
    I don't know to THANKS you

  • @prisham8485
    @prisham8485 7 ปีที่แล้ว +1

    Thanks for making this complex topic so understandable...

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

    Hi Mukesh ,
    Really very useful this video, much enough to clear more information about Base class and script writing.

  • @sskMALLI
    @sskMALLI 7 ปีที่แล้ว +1

    Hi Mukesh,
    First of all, I would like to appreciate your efforts in posting these informative videos. Your videos are fantastic and easy to understandable for any startup automation testing aspirants !!
    Please can you upload the Part 2 of this video?? I would like to know about how to use parameterization for same login concept.
    Thanks a lot !!
    Srinivas

  • @pankajsutar919
    @pankajsutar919 7 ปีที่แล้ว +1

    Hi,
    can you please make a video on framework development like hybrid using pom design patterns..

  • @TUTU-m8y
    @TUTU-m8y 8 ปีที่แล้ว

    sir
    I watched your data driven frame work and some other videos also its so nice
    hence i am requesting you to publish complete hybrid framework

    • @Mukeshotwani
      @Mukeshotwani  8 ปีที่แล้ว

      Hi You can get full course learn-automation.usefedora.com/p/selenium-frameworks-and-selenium-question-answers

  • @umeshsyal2006
    @umeshsyal2006 7 ปีที่แล้ว +1

    Hi Mukesh, 1st of all nice video of teaching us how the selenium work. 2nd i have a question you use this video reporter.log command, could you please tell me if i want to use same command in JUnit what is the command name and how to perform.

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Umesh I have not used JUnit so not sure on this.

  • @PankajSharma-pl3nq
    @PankajSharma-pl3nq 4 ปีที่แล้ว +2

    Hello Mukesh,
    Thanks for the great explanation. I always had the doubt that why and where we need to inherit the classes in our automation suite when we can still access the member variables and functions of class just be creating the object of that class.
    This is one of the classic example to answer the same. Can you quote any other scenario where we can get better results by extending the class rather that creating the object of class and call the member function of that class.

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

      Hi Pankaj, main reason of using Inheritance is to reuse, so there can b n number of scenarios depends on your requirement.
      For example check this hierarchy www.javadoc.io/doc/org.seleniumhq.selenium/selenium-api/2.50.1/org/openqa/selenium/NoSuchElementException.html

  • @pavelcapet4819
    @pavelcapet4819 7 ปีที่แล้ว +1

    Hey. Might be that I missed part, but have a question. TestBase class methods and annotations are executed all the time while it is extended by other test class?

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Pavel yes u r correct so we extend BaseClass in Actual test only and for other actions we create separate library and call them based on requirement.

  • @masumbha
    @masumbha 8 ปีที่แล้ว

    HI Mukesh
    Do u have posted any videos on Keyword driven framework?

  • @laxmideepika
    @laxmideepika 7 ปีที่แล้ว

    Hi Mukesh do you have videos on keyword driven framework on selenium wedriver

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

    Hi Mukesh very informative and easily understandable video tutorials. Could you please share next part?

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

      Yes Ram will upload soon.

  • @varundutta2381
    @varundutta2381 7 ปีที่แล้ว

    Hi Mukesh ,
    Why you did not use the System.SetProperty ("webdriver.chrome.driver", "C:\\Chrome Driver\\chromedriver_win32 (1)\\chromedriver.exe") in this video when using ChromeDriver() ?

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

    it is good to know about how use testNg and Base Class thank you

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

      Glad to hear from you Rathnam

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

    Hi Mukesh, Thanks for this clearly understandable video on base class. Please let us know by when we will get 2nd part of base class video covering the base factory concept. Thanks.

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

      Hey Sandeep Mahajan I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation.
      I will be uploading framework videos soon

  • @bertzhang1988
    @bertzhang1988 7 ปีที่แล้ว +1

    Hi if both base class and test class have a method with @beforeMethod annotation, which one should take precedence ?

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Base class will have first preference.

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

    thank you so much sir for detailed explanation......

  • @stevenclark1973
    @stevenclark1973 7 ปีที่แล้ว +1

    Excellent video... maybe play at 50% speed ;)

  • @sultanatunjiru7207
    @sultanatunjiru7207 7 ปีที่แล้ว

    Nice...................................waiting for next video........Thanks

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

    Hi Mukesh, Is there any difference between a Base class and property file, as far as i can understand both provides setup file details like path of drivers and urls. please let me know if there is some difference between both.

  • @AlphaSierra380
    @AlphaSierra380 8 ปีที่แล้ว

    nice and a very helpful...thanks

  • @raghuhoskote9298
    @raghuhoskote9298 8 ปีที่แล้ว

    Hi Mukesh, Thanks for the video.
    And just wanted to check, will there be any further videos from ur end extending to the framework design.
    Can you please add more videos on designing framework from scratch ?

    • @Mukeshotwani
      @Mukeshotwani  8 ปีที่แล้ว

      Yes but not sure when will be full videos will be uploaded. I have paid course for framework learn-automation.usefedora.com/p/selenium-frameworks-and-selenium-question-answers

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

    Hi Mukesh,
    waiting for the second part on BaseClass...
    very useful and informative...Thanks alot...cheers :) !!

  • @priyankasharma3820
    @priyankasharma3820 7 ปีที่แล้ว

    You are amazing. Thanks a tonne..These videos are very helpful..Keep up the great work!!..:)

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Thanks Priyanka :) Keep visiting and let me know if any help required from my side.

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

    That's really a great video. Can you please make a video on code re-usability. It would be an immense amount of help.

  • @pratikmahant7362
    @pratikmahant7362 4 ปีที่แล้ว +2

    Hii sir, Having one query how to use base class in cucumber OR how to reuse same code in cucumber plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz make video on thiis.

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

    Hi Mukesh, Thank you for this excellent video on base class. If possible, I would like to see 2nd part of base class video . I cannot find the 2nd part. thanks

  • @nehatanna2692
    @nehatanna2692 7 ปีที่แล้ว

    Hi Mukesh,
    I am getting NullPointerException when i am having a base class with setup and teardown methods in it and my test class is in another class, also i have tried to use page object model in this code. what can be the reason for exception? driver instance can be i know but i am not getting it how to correct it.

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

    Thanks a ton, Mukesh......Great work!

  • @sharathkrishnan1558
    @sharathkrishnan1558 8 ปีที่แล้ว

    Great work..

  • @anushaanu5684
    @anushaanu5684 7 ปีที่แล้ว +1

    Hello sir,
    Ur explaination is good,am getting error at driver.manage().window().maximize()...as it is showing error at selenium extension.

  • @Abhisheksharma-wj5gw
    @Abhisheksharma-wj5gw 7 ปีที่แล้ว

    Hi mukesh,
    we want complete hybrid framework design....... i am still waiting these video by your side.i want to design this framework but not having proper guideline regarding this.
    Thanks

  • @gaurav7988
    @gaurav7988 8 ปีที่แล้ว

    Hi Mukesh,
    Thanks for sharing this tutorial. I am having a doubt what if we want to execute script in parallel test environment. I really doubt @AfterClass and @BeforeClass would be suitable. Pls comment on it.
    Regards,
    Gaurav

    • @Mukeshotwani
      @Mukeshotwani  8 ปีที่แล้ว +1

      Hey Gaurav, you can use @BeforeTest and @AfterTest as well

    • @gaurav7988
      @gaurav7988 8 ปีที่แล้ว

      Mukesh otwani Thank you. So i can use any one and parallel execution would be smooth. Every new test case would get new instance of driver right?

    • @Mukeshotwani
      @Mukeshotwani  8 ปีที่แล้ว +1

      Class will have seperate instance.

    • @gaurav7988
      @gaurav7988 8 ปีที่แล้ว

      Thank you Mukesh :) Your videos are really nice and to the point.

  • @vasantchavan4847
    @vasantchavan4847 7 ปีที่แล้ว +1

    Excellent video sir ji.
    if any help i will put you mail
    Thanks for the Videos'

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      yes sure Vasant

    • @vasantchavan4847
      @vasantchavan4847 7 ปีที่แล้ว

      Thank you sir for your reply.
      I'm using object repository to store XPath. And you where covered POM is it OK to use only object repository instead of POM.
      Or is it another concept I'm not getting it what exactly the both of.
      Clould you please elaborate this for me.

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

    Sir, I have a doubt,in flipkart how do we Mouse Over Womens and take the screenshot in selenium?

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

      What is the doubt here ? You can use move to element from actions class for mouse hover and TakesScreenShot interface for taking screenshot.

  • @sandeeppatel-jt3cm
    @sandeeppatel-jt3cm 7 ปีที่แล้ว

    Hi sir,
    i have tried to use page object model in this code.and getting nullpointer exception?
    please help

  • @tasiorek27
    @tasiorek27 7 ปีที่แล้ว

    Your tutorialas are in Java or Javascript?

  • @jacksparow051
    @jacksparow051 7 ปีที่แล้ว

    Hi Mukesh, can you please share second part of this ?

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

    Where is part 2 of this..I generalised everything in base class by passing parameters in my test class. I wanted to learn about some new libraries. Help us with 2nd part. Thanks

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว +2

      Here is complete implementation th-cam.com/play/PL6flErFppaj0WwNOMFeXPVlNCDuJyPYFi.html

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

    Hi Mukesh where you kept your chromedriver path please tell me

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

      You can use WebDriverManager for automatic driver manage or you can keep drivers in project directory or in environment variable.

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

      @@Mukeshotwani thank you i kept it in Environment Variable

  • @mrunalpatil7867
    @mrunalpatil7867 7 ปีที่แล้ว +1

    If possible please upload part of this video.

  • @tapaspadhi1530
    @tapaspadhi1530 8 ปีที่แล้ว +1

    how come chrome browser worked without system.setproperty command ?

    • @Mukeshotwani
      @Mukeshotwani  8 ปีที่แล้ว +1

      Hi Tapas,
      In MAC we have this feature check out the link learn-automation.com/chrome-browser-on-mac-using-selenium/

    • @manishrana6596
      @manishrana6596 8 ปีที่แล้ว +1

      Even I was wondering that!!

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

    Sir what is the difference between valid login and invalid login here,both test cases are passed na sir

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

      He just showed in same class using two method one for Valid login and another for invalid login to show that extended base class will work for both method without any error, though he missed to give invalid cred in second one but the real message was shown , that is main important.... Hope you understood !!!

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

      Thanks Jha ji

  • @dfwguy03
    @dfwguy03 7 ปีที่แล้ว +1

    I am really confused at how are you running this without a main method? Can you explain that.

    • @Mukeshotwani
      @Mukeshotwani  7 ปีที่แล้ว

      Hi Mate I have added @ Test in Base class thats why it is running without main method. Check out below post for more details.
      learn-automation.com/base-class-in-selenium-webdriver/

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

    Thank u so much sir..

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

    Hello sir, how to use base class in cucumber , please help me

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

      Hi saurabh, you can use BaseClass concept in runner class of cucumber.

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

      Sir cucumber base class is not running, please make video on base class in cucumber

  • @ABIRAMICHANDRASEKARAN-r3y
    @ABIRAMICHANDRASEKARAN-r3y ปีที่แล้ว

    can you clarify how to add gecko driver in base class....

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

    TestNG installation link pls!!

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

    You can easily write PageObjects in IntelliJ IDEA with plugin:
    blog.jetbrains.com/idea/2020/03/intellij-idea-2020-1-selenium-support/

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

    no exe file?

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

    2nd part please

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

    where is the chrome.exe file?

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

    your tutorial is almost perfect but not explaining where hell is the exe file

  • @anjaligupta-zi4mf
    @anjaligupta-zi4mf 3 ปีที่แล้ว

    Sir aap thora clear Karke samjao pls bahut confusion h

  • @DeepikaDeepika-qr6rg
    @DeepikaDeepika-qr6rg ปีที่แล้ว

    Base class using map

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

    Really confused what your saying it’s not helpful

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

      Hi Zeya, what is the confusion?
      Using base class you can reuse the code.. extend the base class in each test class and you can start using the base class code.