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

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

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

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

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

    Excelente aporte. Gracias

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

      Encantado de que te haya gustado

  • @priyadarshiniMG
    @priyadarshiniMG 28 วันที่ผ่านมา

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

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

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

    Very useful information bro. Got full clarity.

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

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

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

    Thank you so much for providing this information sir🙏

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

    Thanks for providing such a deep insight

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

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

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

    Great useful videos!! thanks

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

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

    Thank you sir

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

      Happy learning buddy 😊

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

    Awesome man!

  • @mohanramakrishnakonijety9405
    @mohanramakrishnakonijety9405 14 วันที่ผ่านมา

    Thank you

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

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

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

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

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

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

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

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

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

    Bro you are killing it😎

  • @SinghAmitKumar-bf9nr
    @SinghAmitKumar-bf9nr ปีที่แล้ว +1

    I will surely follow you.. :)

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

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

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

    Such a great job

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

    Really smart

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

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

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

    ur the best...lob lob

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

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

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

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

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

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

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

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

      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 2 ปีที่แล้ว +1

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

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

      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

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

    Are you providing online classes?

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

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

    Thank you