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

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 77

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

  • @navathutejomai1038
    @navathutejomai1038 2 роки тому +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 Рік тому +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  Рік тому

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

  • @prasannamahale1854
    @prasannamahale1854 3 роки тому +5

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

  • @Johnny-pt5jb
    @Johnny-pt5jb 3 роки тому +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  3 роки тому +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.

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

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

  • @priyadarshiniMG
    @priyadarshiniMG 5 місяців тому

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

  • @wilmergonzales2139
    @wilmergonzales2139 3 роки тому +6

    Excelente aporte. Gracias

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

      Encantado de que te haya gustado

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

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

  • @prathameshausekar
    @prathameshausekar 2 місяці тому

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

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

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

  • @nagasaimaddula56
    @nagasaimaddula56 7 місяців тому

    Very useful information bro. Got full clarity.

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

    Thank you so much for providing this information sir🙏

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

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

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

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

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

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

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

    Thanks for providing such a deep insight

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

    Bro you are killing it😎

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

    Can you continue this series it is very helpful

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

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

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

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

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

    Awesome man!

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

    Great useful videos!! thanks

  • @SinghAmitKumar-bf9nr
    @SinghAmitKumar-bf9nr Рік тому +1

    I will surely follow you.. :)

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

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

  • @ParaDox-uv6hu
    @ParaDox-uv6hu Рік тому +1

    Thank you sir

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

    Really smart

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

    ur the best...lob lob

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

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

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

    Such a great job

  • @NeverStopLearning56
    @NeverStopLearning56 Рік тому +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  Рік тому +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.

  • @chayae3740
    @chayae3740 5 місяців тому

    Are you providing online classes?

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

    Thank you

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

    Is driver .get and navigate is example of override?

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

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

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

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

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

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

  • @roshanp.thomas1768
    @roshanp.thomas1768 3 роки тому +1

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

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

      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 3 роки тому +1

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

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

      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.

  • @Shubham-fk4is
    @Shubham-fk4is 2 роки тому

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

    • @HYRTutorials
      @HYRTutorials  2 роки тому +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 2 роки тому

      @@HYRTutorials Ok Thanks

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

    when i click f3 its showing source not found

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

      Are you using normal java project?

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

      @@HYRTutorials yes

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

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

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

      Thankyou buddy 😊
      I will try to go slow

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

    What is cookies

    • @HYRTutorials
      @HYRTutorials  3 роки тому +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 3 роки тому +1

      @@HYRTutorials tqu sir

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

      @@chayae3740 welcome

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

    Thank you