What is the meaning of WebDriver driver = new ChromeDriver() in Selenium WebDriver?

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ส.ค. 2020
  • In this video, I have explained about "What is the meaning of WebDriver driver = new ChromeDriver() in Selenium WebDriver?".
    WebDriver is an interface with a set of unimplemented methods.
    WebDriver drives a browser natively, as a user would, either locally or on a remote machine using the Selenium server, marks a leap forward in terms of browser automation.
    Selenium WebDriver refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just WebDriver.
    Selenium WebDriver is a W3C Recommendation
    - WebDriver is designed as a simple and more concise programming interface.
    - WebDriver is a compact object-oriented API.
    - It drives the browser effectively.
    ==============================================
    ↔️ Selenium Interview Questions Playlist Link: bit.ly/3matUB3
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc
    👑 Join my TH-cam channel to get access to perks:👇
    / @hyrtutorials
    ==============================================
    ==============================================
    Connect us @
    🔗 Website - www.hyrtutorials.com
    🔗 Telegram - t.me/hyrtutorials
    🔗 Facebook - / hyrtutorials
    🔗 LinkedIn - / hyrtutorials
    🔗 Twitter - / hyrtutorials
    🔗 Instagram - / hyrtutorials
    ==============================================
    ==============================================
    🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
    #hyrtutorials #selenium #interviewQuestions #webAutomation
    Selenium Interview Questions By Yadagiri Reddy
    h y r tutorials hyr tutorials selenium interview questions and answers selenium tutorial for beginners selenium java selenium interview questions and answers selenium tutorial for beginners selenium java

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

  • @venumadhav9311
    @venumadhav9311 3 ปีที่แล้ว +7

    Superb! Hardly other instructors give importance to this statement.

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

    Good Explanation of the statement. Easy to understand. Thanks for the Video

  • @rakshagupta5246
    @rakshagupta5246 3 ปีที่แล้ว +5

    very helpful video for selenium interview. thanks sir for this video

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

    Very clear explanation. Thanks a lot.

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

    Excellent explanation ! Thanks.

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

    Thanks you sooooo much Sir great explanation everyone saying same thing but the way you explained it's just superb thanks again

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

    It is so clear and detailed

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

    Much needed concept
    Tq for making videos..

  • @C.Sakthivignesh
    @C.Sakthivignesh ปีที่แล้ว +2

    Thank you so much sir for made this video.

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

      Happy learning buddy 😊

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

    Thanks for the clear information sir.

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

    Best explanation ever 🙏

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

    very well explained. tnx

  • @hariharansuchindran2216
    @hariharansuchindran2216 10 หลายเดือนก่อน +1

    Excellent explanation

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

      Thanks buddy 😊

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

    Really really great 😊

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

    Thank you so much

  • @HafizurRahman-dr3xe
    @HafizurRahman-dr3xe 2 ปีที่แล้ว +1

    I see your video brother and is very nice , thanks a lot

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

    Nicely explained

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

    good explanation

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

    Perfect...👍

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

    Thank you sir

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

    great explanation bro please try to make more interview faqs on selenium

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

    Hello sir, we can also write ChromeDriver driver =new ChromeaDriver(); also right?

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

    nice explanation

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

      Thanks buddy 😊

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

    Nice explanation..

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

    awesome!

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

    Very useful information in interview

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

      Thanks for liking

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

      @@HYRTutorials can u create java interview questions for selenium like this

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

      Yeah i will try to create bro. But i would suggest you to have full knowledge on core java rather than looking for interview questions.
      One can become a good automation tester only when he/she has a very good understanding on the programming language.

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

    superb

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

    hi ,what is the instance you mentioned while explaining the ChromeDriver instance?

  • @gnaneshwarvlogs.aka.gsreedhar5
    @gnaneshwarvlogs.aka.gsreedhar5 3 ปีที่แล้ว +1

    Nice Explanation Sir

  • @roshanp.thomas1768
    @roshanp.thomas1768 3 ปีที่แล้ว +1

    Sir. What is the difference between implemented and unimplemeted methods?
    Can you show it with an eg.

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

      Unimplemented methods will not have any implementation inside the method.
      Generally we define the method and some code inside that method ryt?
      Eg:
      public void testMethod()
      {
      System.out.println("Implemented method");
      }
      the above one is implemented method and you can see it has some code in it, it might be just a print statement also.
      Unimplemented method means it will not have any implementation in it, means it will not have any code basically.
      Eg:
      public void testMethod();
      Generally we have three types of java files.
      1. Class
      2. Abstract class
      3. Interface
      Out of all these 3 , only class will have fully implemented methods.
      Abstract class will have both.
      Interface will have only un-implemented methods(before java 8), will have default type of implemented methods as well (after java 7)

    • @roshanp.thomas1768
      @roshanp.thomas1768 3 ปีที่แล้ว +1

      @@HYRTutorials Thank you Sir.

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

    Tnx sir

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

    Nice 👍

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

    Can we use RemoteDriver in the place of webdriver

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

      Yes we can use it without any doubt.

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

    good content

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

    Tq sir

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

    tq andi☺

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

      welcome buddy

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

      @@HYRTutorials meru java programs ni use chesi videos amayina cheppara a?

  • @munindharr1039
    @munindharr1039 10 หลายเดือนก่อน +1

    pls keep addming more

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

    Sir apo ithu upcasting method ilaiya chromedriver oru constructor athanala ithu upcasting methods use object create panalaiya

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

      ungalaku tamil konjem knojhem da teriyum macha. ne yenna solladu enaku purille. english la solunga macha

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

      Sir I asked... Isn't this a upcasting method. Chromedriver is a constructor or not sir

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

      @@bhagyalakshmi5230 yes this is up casting only buddy. As we are casting the class instance to interface reference here

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

    Sir import statement is coming for webdriver or Chromedriver but not for both how can I fix these

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

      Which selenium version you are using buddy?

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

      @@HYRTutorials 3.141.59

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

    ChromeDriver driver= new ChromeDriver();
    WebDriver driver= new ChromeDriver();.
    Both will work right ?
    What is the defence then bro... I am not getting that logic
    Please anna answer kavali

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

      Video motham chusava buddy?
      Video chusaka neeku em ardam indo okasari cheppu buddy

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

      @@HYRTutorials as per my knowledge in 2nd statement driver object has access to methods in ChromeDriver Class which are there in WebDriver Interface
      First statment can access all methods in ChromeDriver class

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

      Webdriver is an interface and by default it have abstract methods and we cant create constructor of a interface directly, for that we need implementation class and in this case Chromedriver is an implementation class which will pass the arguments at the time of execution of program.
      And here we are doing upcasting which is part of typecasting.

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

    Pls upload more videos on interview questions

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

    next question was- we cant create an object of interface right? then how webdriver interface is creating the obj?
    how to answer this?please reply!

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

      We can't create an object of interface but here we are not creating the object of interface buddy.
      We create any object by invoking the constructor and here we are invoking the chrome driver constructor not the webdriver constructor.
      Which means we are creating the object of chrome driver class only and not t the webdriver interface.
      We have mentioned the variable type as webdriver here.
      You can simply say like this
      We are not creating the object of interface but we are creating a reference here

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

      @@HYRTutorials
      u meant we are invoking the chromedriver constructor through driver as a reference and webdriver as variable right?
      so driver has all the properties of chromedriver like whatever method we call like findElement .close() etc.
      then what is the need of to write webdriver there?
      he traped me in this question very badly ...and i m still unable to undrstand this thing.

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

      @@naaz7847 to understand this very clearly, learn about the interfaces and classes in java buddy

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

      @@HYRTutorials tell me the answer

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

    is it also called as Typecasting????

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

      This isn't the typecasting buddy.

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

    how many test cases you write in a day & how test cases will you execute in a one day
    this question ask in interview
    hoe to answer this question plz explain sir

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

      It depends on project to project and role to role buddy.
      Get in touch with your friends who are working in the same field and get to know the day to day activities

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

    please explain complete manual testing.
    what is manula testing ?
    what is black box testing?
    what is white box testing?
    what is gray box testing?
    what is functional testinng?
    what is non functional testing?
    what is performance testing?
    types of functional testing?
    types non functional testing?
    water fall model
    v model
    SDLC
    STLC

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

      Manual testing meeda no plans buddy

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

    Bro mi videos automation classes chaala bagunnaye koncham interview questions and ans ala untaayeo chesi video upload cheyyandi bro so maki interview ki attend aieyyeki chala help autaadi pls bro

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

      Thankyou 😊, Sure bro

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

      @@HYRTutorials tqq for u r responce bro chaala manchipani cgestunnaru ma lanti job searching persons ki tq

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

      @@dudekulachandu4440 thankyou bro 😊
      Hope you will get your job very soon

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

      @@HYRTutorials tqq bro job vachhaka mari miki pakka chopataa

  • @AnkitSingh-be4wi
    @AnkitSingh-be4wi 3 ปีที่แล้ว +1

    Have you created any videos on desired capabilities for browsers?? Btw nice explaination 👍👍

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

      Yes here is the link
      th-cam.com/video/lvIXXilkw60/w-d-xo.html
      And another video is on the way, soon will upload it.

    • @AnkitSingh-be4wi
      @AnkitSingh-be4wi 3 ปีที่แล้ว +1

      @@HYRTutorials thanks for the quick reply..it was helpful 👍

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

    Pls do more information about selenium

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

    Sir 2years experience Candidates ki salary 12lpa untundha?

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

      It all depends on the candidate performance, talent and profile.
      Yes I have seen people with 12lpa for 2 years.

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

      @@HYRTutorials ok sir thanks

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

    why do we write WebDriver d = new ChromeDriver(); instead of ChromeDriver d = new ChromeDriver(); ??

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

      For that question only this video buddy

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

      @@HYRTutorials sir, why can't we write ChromeDriver d = new Chrome Driver (); ???

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

      Did you watch this video buddy?

  • @gousiakhan732
    @gousiakhan732 10 หลายเดือนก่อน +1

    Hlo sir manual and auto mati9n test cases mida oka video cheyandi sir

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

    Sir please make a video on explain framework in interview?

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

    What is BY. ?

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

    really going extra mails bro

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

    Why not ? WebDriver ChromeDriver = new ChromeDriver();
    or When to use it?

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

      There is another video on why we need to use it like this.
      You can watch that video.

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

    sir please explain script in telugu to register to a particular application

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

      Ardam kaaledu bharathi.
      Em application ni register cheyyali and ekkada cheyyali?

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

      Opencart application,in selinium java

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

      aa application ni automate cheyyali anukuntunnva?

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

      Yes sir

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

      Watch the selenium java playlist and you will be able to automate the application

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

    🥰😍

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

    Testng concepts tulugu lo leva

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

    It's reference variable not a local variable

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

    If we do
    ChromeDriver driver = new Chrome driver ();

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

      It's a valid thing only but we need to understand the difference why we should not write like that

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

    what is WebDriver? The important thing is to know what exactly the use of WebDriver, not Java objective ways.

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

    📌 Selenium Interview Questions Playlist Link: bit.ly/3matUB3
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

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

    Sir please ans my ques

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

    28 february 'I m your youtube student from Kanada 😃