How To Handle Element Not Interactable Exception - Selenium WebDriver Tutorial

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • Selenium WebDriver Element Not Interactable Exception is one of the most tricky to fix and it makes it a popular interview question.It is very difficult to find the correct reasons behind it all over the internet. In this video we will see the exact reasons for this exception and how we can resolve it.
    ******* Join LinkedIn Group *******
    / 14208166
    ******* Explore Indian Lifestyle in America *******
    Rohini's VLogs: • My Favorite Shopping P...
    ******* Follow my non-work life *******
    Anil's Instagram: / aniltomar
    Rohini's Instagram: / its_rohini_tomar
    ****************************************************************
    Element Not Clickable Exception:
    • How To Handle Element ...
    No Such Element Exception:
    • How To Handle No Such ...
    ****************************************************************
    Selenium WebDriver With Java ($8.99 Only):
    courses.letsko...
    ****************************************************************
    Selenium WebDriver With Python ($8.99 Only):
    courses.letsko...
    ****************************************************************
    Selenium WebDriver Advanced Framework ($8.99 Only)
    courses.letsko...
    ****************************************************************
    Complete Test Automation Bundle ($29.99 Only):
    Includes 9 Courses, future new test and automation courses will be added to this bundle
    courses.letsko...
    ****************************************************************
    Web Automation Bundle ($19 Only):
    courses.letsko...
    ****************************************************************
    Please be our Patron and support us to provide you great content:
    / letskodeit
    Website:
    www.letskodeit.com
    Join Private Facebook Group:
    / letskodeit
    Follow us on Facebook and Twitter for technology updates:
    / letskodeit
    / letskodeit
    #InterviewPrep #SeleniumInterview #SeleniumWebDriverExceptions #SeleniumJava #SeleniumPython #SeleniumFramework #AutomationFramework

КОМЕНТАРІ • 94

  • @algor2348
    @algor2348 11 місяців тому +2

    Thanks! This video helped me realise that there were possibly 2 different inputs on the website I am working on. One for the click and another one for the sendKeys. It was exactly that.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  11 місяців тому +2

      Glad you liked the video :)
      Please share the video with your friends to help us.

  • @auntsi
    @auntsi Рік тому +3

    I was looking for a solution to this mistake and finally found your video. Thank you very much! Everything cleared up

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

    Information is very important.
    I am also stucked at one point and I will check with this solution.
    Thank you

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

  • @emiluchiha
    @emiluchiha 3 місяці тому +1

    Awesome, very easy explained in a short video. Thanks.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 місяці тому +1

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

  • @jimfrvnklin
    @jimfrvnklin Рік тому +2

    bro. stay blessed every day. This video literally saved my life.

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

  • @natashasimone1931
    @natashasimone1931 Місяць тому

    Thanks, this was super helpful. It helped me to realise there were 2 elements with the same className therefore the driver was finding the element which was in mobile view(not interactable). I needed to findElements and select 2nd item in the array.😄

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Місяць тому

      Glad you liked the video :)
      Please share the video with your friends to help us.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Місяць тому

      You don't even need to use findElements and select the second item in the array. You can use the XPath and then use index like: (xpath)[2] -> Parenthesis is needed around the Xpath and then use the index in square brackets.

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

    unfortunately i didn't find you before. One of the best tutorials it is. Thank you so much.

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

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

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

    one of the best Selenium tutorials

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

  • @RoshanMishra-oq3hx
    @RoshanMishra-oq3hx Рік тому +1

    Rarest of rare Video!! Thanks a ton mate.

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

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

  • @adityarastogi3483
    @adityarastogi3483 2 роки тому +3

    great video !! , thanks a lot . Easily explained..amazing !!

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.
      If you like our way of explanation, you can enroll in our comprehensive courses also.
      Links in the description, discount already applied in the links for ease of use.

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

    Thank you so much .This is exactly what I wanted .

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +2

      Wow! When I see these comments, it makes me really happy that someone is getting helped.
      Glad you found it helpful, please like and share the video to spread the word :)

  • @renekwango2993
    @renekwango2993 5 місяців тому +1

    I don’t like comment but u are a live saver

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  5 місяців тому +2

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

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

    This is a very clear explanation. Thanks

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

      Glad you found it helpful, please like and share the video to spread the word :)

  • @sebastianarzadun6452
    @sebastianarzadun6452 2 роки тому +3

    Thank you, you save me a lot of time !

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

      Glad you found it helpful, please like and share the video to spread the word :)

  • @esakkiappan618
    @esakkiappan618 2 місяці тому +1

    Thanks for this video man!

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 місяці тому +1

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

  • @-anvarcanada4657
    @-anvarcanada4657 2 роки тому +5

    Cool video Anil! Thanks a lot for such detailed explanations! Liked and subscribed!

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

      Glad you found it helpful :)
      Please share the video on your social media and help us spread the word.

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

    Really Helpful! Thanks

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

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

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

    very nice Thank you so much .This is exactly what I wanted .

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

      Glad you found it helpful, please like and share the video to spread the word :)

  • @dafoxlana
    @dafoxlana 10 місяців тому +1

    Thank you !!! You saved my life 🙏🙏🙏🙏🙏

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  10 місяців тому +1

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

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

    You are a legend, wanna subscribe twice

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

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

  • @vkeyb4513
    @vkeyb4513 Місяць тому +1

    Nicely explained

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Місяць тому +1

      Glad you liked the video :)
      Please share the video with your friends to help us.

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

    amazing content. i want a video on how to accept web alerts(that pop up when we work with any form or something .)

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.
      There are different types of alerts and pop-ups which need different strategy.
      I would recommend you to enroll in our complete course to learn all the details. Course links can be found in the description, and the links also consists of discounts.

  • @user-xl5re1ie2d
    @user-xl5re1ie2d 2 місяці тому +1

    Thanks for the video😊

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 місяці тому +1

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

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

    Thank you so much sir

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

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

    was searching for this only.thanks.

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

      Glad you found it helpful, please like and share the video to spread the word :)

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

    Thanks a lot

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

  • @SHINOBICARLOS
    @SHINOBICARLOS 2 роки тому +3

    Very good!!!

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

      Glad you found it helpful, please like and share the video to spread the word :)

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

    Thanks

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

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

  • @sandeepanand3443
    @sandeepanand3443 3 роки тому +2

    Very nicely articulated and defined. I have question hear SFO was type but it was not selected....how to select the SFO after typing in?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +2

      Glad you found it helpful, please like and share the video to spread the word :)
      Please let me know what time in the video you are referring to.

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

      Can you please reply?

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

      Able to do so, pls ignore

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

      @@sandeepanand3443 I didn't see your comment with the time where you were referring to.
      Glad you were able to figure it out :)

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

    I am getting element not interactable exception and also it is written that the element has zero size. How to solve such exception?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +3

      Element has zero size means you are using incorrect syntax. Most likely you are using findElements instead of findElement.

  • @sucukkillerdu6714
    @sucukkillerdu6714 8 місяців тому +1

    I love you bro Thank

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  8 місяців тому +1

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

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

    Really Helpful T
    hankyou mate

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

      Glad you found it helpful, please like and share the video to spread the word :)

  • @akshaykulkarni7248
    @akshaykulkarni7248 4 місяці тому +1

    Does input tag is required for browse action.....as i am getting element not interactable exception

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 місяці тому +1

      Usually there is an tag, however it may vary based on the implementation.
      ElementNotInteractable may show for any type of element.

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

    hello sir I m fresher and I'm trying to automate a project but I m stuck I cant able click button which is only visible when the mandatory fields are completed properly and i am using mocha framework can u plz

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

      Hi, Mocha is a testing framework, it doesn't have automation capabilities. Which tool are you using to automate, WebDriver IO, Cypress, Protractor? What is the issue you are seeing?

  • @yevhenonopriienko9580
    @yevhenonopriienko9580 3 роки тому +2

    Topic is important, but in this video described in general about incorrect way of finding unique elements in the DOM

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +2

      Please watch the complete video, there are detailed explanation of the issue when this exception shows up and what we need to do in order to resolve this exception.

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

      ​@@LetsKodeItOfficial , i watched complete video. My point of view is, if in the begininng we found correctly unique elements and provide right steps for runing tests above (like it was in search example) - majority of the given ecxeptions we would not seen

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +2

      @@yevhenonopriienko9580 That's correct and this is the whole point of the video. Exceptions show up when we don't perform correct flow and correct actions. Video discusses the issues we can make in automation and why would these exceptions show up, then we discuss how we can avoid making those mistakes to handle the exceptions.

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

      @@LetsKodeItOfficial , understood. Thank you, anyway, for this lesson

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

    I am on Windows and I am facing the same problem on MS Edge browser. I am using VBA code and selenium Basic
    The field I want to SendKeys to is a searchabel dropdown list. Its code written like this:
    How can I handle that?
    Thanks in advance

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

      This element is not interactable because it has hidden attribute. There should be another element which is actually used to show the element, try to find other element which refer to the same element and work with that.

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

    How to Take full page screenshot please explain sir

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

    thank you sooooooooo much!!! I've been tortured fo a whole day

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

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.
      Please also consider enrolling in the complete course to get lifetime access to courses with support and all future courses will be available at no extra cost.

  • @fifa21proclubs80
    @fifa21proclubs80 10 місяців тому +1

    Has anyone tried adding a comment on Instagram? Is it possible to do that too? :)

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  10 місяців тому

      The only issue which may happen is login to Instagram as they might prevent automation to login. You need to try that to figure out. Once that’s done, there shouldn’t be any issues to post a comment.

  • @Trueindian_2024
    @Trueindian_2024 5 місяців тому +1

    Its really nice and cool--

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  5 місяців тому +1

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.

  • @user-pl3be4bj5t
    @user-pl3be4bj5t Рік тому +1

    awesome sir, thanks a lot

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

      Glad you found it helpful :)
      Please like and share the video to spread the word and help us.