What is the difference between driver.get() and driver.navigate().to() in Selenium WebDriver?

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 77

  • @HYRTutorials
    @HYRTutorials  Před 3 lety +3

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

  • @navathutejomai1038
    @navathutejomai1038 Před 2 lety +6

    I always used to follow what I have read, but today I saw you who makes his own validation and follow, you are a gem of person Sir

  • @SinghAmitKumar-bf9nr
    @SinghAmitKumar-bf9nr Před rokem +2

    Great Explanation I must Say... Most of the people gave wrong answers as most the places it is written wrong, If they have not seen your Explanation. Thanks for sharing the video. Great Thanks

    • @HYRTutorials
      @HYRTutorials  Před rokem

      That's why I have shown in the code also buddy
      So that while answering in the interview, you can be very confident

  • @prathameshausekar
    @prathameshausekar Před 8 dny

    Thats the correct way to reach truth, thanks for sharing!

  • @prasannamahale1854
    @prasannamahale1854 Před 3 lety +5

    Really worth watching each and every video
    Very useful...🙏

  • @wilmergonzales2139
    @wilmergonzales2139 Před 3 lety +6

    Excelente aporte. Gracias

  • @Johnny-pt5jb
    @Johnny-pt5jb Před 3 lety +1

    The best and simplest explanation I have seen so far.
    Is this also a myth?
    "Single-Page Applications are an exception to this.
    The difference between these two methods comes not from their behavior, but from the behavior in the way the application works and how the browser deals with it.
    navigate().to() navigates to the page by changing the URL like doing forward/backward navigation.
    Whereas, get() refreshes the page to change the URL."

    • @HYRTutorials
      @HYRTutorials  Před 3 lety +1

      As you said it is a myth only.
      In the video I have shown at the code level also ryt.
      There is no difference between both of these methods in the functionality.

  • @priyadarshiniMG
    @priyadarshiniMG Před 2 měsíci

    Wonderful explanation👌👌👏👏thank you so much👍👍

  • @nagasaimaddula56
    @nagasaimaddula56 Před 4 měsíci

    Very useful information bro. Got full clarity.

  • @jyothireddykonduru
    @jyothireddykonduru Před 3 lety +4

    Very unique explanation difference. GREAT MIND!! HYR :)

  • @GrafMKristo
    @GrafMKristo Před 2 lety +1

    I feel like I've just watched some cool detective movie with suspense and release! =))
    You're a real pro!

  • @tapaskhandai
    @tapaskhandai Před rokem

    Wow Man. Please create more and more videos. Will follow every video of yours. Thank You so much.

  • @NeverStopLearning56
    @NeverStopLearning56 Před rokem +2

    Please make a Vedio explaining the architecture of Selenium 3 & selenium 4 practically, this is mostly asked question across everywhere

  • @srilekha009
    @srilekha009 Před 2 lety +1

    Thank you so much for providing this information sir🙏

  • @jawwad4020
    @jawwad4020 Před rokem

    Thanks for sharing your wisdom sir! Now I know not to trust random internet sources ❤️

    • @HYRTutorials
      @HYRTutorials  Před rokem +1

      Thanks buddy 😊
      Unless we see the proof, we shouldn't believe the internet stuff buddy

  • @surabhikaur4274
    @surabhikaur4274 Před 2 lety +1

    Nice explanation. Please prepare more videos on selenium interview questions.

  • @shivu2012
    @shivu2012 Před rokem +1

    Awesome man!

  • @navathutejomai1038
    @navathutejomai1038 Před 2 lety +2

    Can you continue this series it is very helpful

    • @HYRTutorials
      @HYRTutorials  Před 2 lety

      Yeah i have to continue. planned some more videos like this but not getting enough time to make them

  • @yaswanthtirupathi6551
    @yaswanthtirupathi6551 Před rokem +1

    Thank you so much bro😊,.Please make some more videos on interview questions bro🙏🙏,.this will be very helpful to many people👏

  • @prasadpatil289
    @prasadpatil289 Před 2 lety +1

    Thanks for providing such a deep insight

  • @juhisehgal6455
    @juhisehgal6455 Před 2 lety +1

    Bro you are killing it😎

  • @ParaDox-uv6hu
    @ParaDox-uv6hu Před rokem +1

    Thank you sir

  • @meghanajugunta7948
    @meghanajugunta7948 Před rokem +1

    ur the best...lob lob

  • @SinghAmitKumar-bf9nr
    @SinghAmitKumar-bf9nr Před rokem +1

    I will surely follow you.. :)

  • @crazycuber1107
    @crazycuber1107 Před 2 lety +2

    Really smart

  • @mithunbiswas5307
    @mithunbiswas5307 Před 2 lety +1

    Great useful videos!! thanks

  • @Kidvideos1997
    @Kidvideos1997 Před 9 měsíci

    I watch this video and tried myself u were right..yesterday i got this question in interview...I told no difference only it will accept string and url to my interviewer this misconceptions fast and all not there and she opened a chrome browser and showed a website ..."see here which one is fast " ...😂 I ask her to check implemention she said ok i will accept and said why they gave navigate seperately then simply ? I was blank 😁 ....what would i have said at time any suggestions from you...

  • @mohanramakrishnakonijety9405

    Thank you

  • @NeverStopLearning56
    @NeverStopLearning56 Před rokem +1

    Hello sir,
    Correct me if i am wrong ,
    Here, When you are referring to stack overflow website and Tutorials point website,
    We can see they have given the differences between driver.get() and driver.navigate()
    And not driver.get() and driver.navigate.to()
    Please check once....

    • @HYRTutorials
      @HYRTutorials  Před rokem +1

      There is no driver.navigate method directly in selenium buddy.
      We tend to say it like driver.get and driver.navigate . It's like asking how you doing instead of how are you doing.

  • @madhurikandulabn8869
    @madhurikandulabn8869 Před 2 lety

    Such a great job

  • @chayae3740
    @chayae3740 Před 3 měsíci

    Are you providing online classes?

  • @gurumurthy757
    @gurumurthy757 Před 3 lety +1

    Is driver .get and navigate is example of override?

    • @HYRTutorials
      @HYRTutorials  Před 3 lety

      No it is not a concept of overriding.
      But you can consider it as reusability of code.

  • @shreyanshsingh2782
    @shreyanshsingh2782 Před 2 lety +1

    sir how to give url instance as parameter please tell example?

    • @HYRTutorials
      @HYRTutorials  Před 2 lety

      Create the URL instance buddy.
      URL is one class in java. And pass that to this method

  • @roshanp.thomas1768
    @roshanp.thomas1768 Před 3 lety +1

    Hi what is difference between an attribute and property in webelement..can you please tell with example.

    • @HYRTutorials
      @HYRTutorials  Před 3 lety

      There is no difference actually.
      It's just the way how we call it.
      Some say webelement properties and some say attributes.

    • @roshanp.thomas1768
      @roshanp.thomas1768 Před 3 lety +1

      @@HYRTutorials Ok.once the web elements are parsed then attributes is considered as properties..is it so...

    • @HYRTutorials
      @HYRTutorials  Před 3 lety

      Yeah kind of u can say.
      In HTML terminology, we call them attributes.
      In programming language, everything is an object and an object will have the properties right.
      So once we find the element in our program, we refer them as properties because the entire element becomes our object.

  • @shaikshashaikshaiksha4441

    Topic is clear but go slow then it will be understand easily

  • @itspratik
    @itspratik Před 2 lety +1

    when i click f3 its showing source not found

  • @Shubham-fk4is
    @Shubham-fk4is Před 2 lety

    Can you please tell me, How can I prepare for the interview if the internet shows myths as answers?
    Please Reply?

    • @HYRTutorials
      @HYRTutorials  Před 2 lety +1

      By learning the subject thoroughly buddy.
      Don't just go by the internet answers.
      Verify that in your code and understand how is it working and all.

    • @Shubham-fk4is
      @Shubham-fk4is Před 2 lety

      @@HYRTutorials Ok Thanks

  • @chayae3740
    @chayae3740 Před 3 lety +1

    What is cookies

    • @HYRTutorials
      @HYRTutorials  Před 3 lety +1

      Cookie is kind of a datatype which store some information like personal information or session id or authentication key etc.. in browser.

    • @chayae3740
      @chayae3740 Před 3 lety +1

      @@HYRTutorials tqu sir

    • @HYRTutorials
      @HYRTutorials  Před 3 lety

      @@chayae3740 welcome

  • @sainathvallampatla5135
    @sainathvallampatla5135 Před 3 lety +1

    Thank you