Selenium WebDriver Tutorial #24 - How to Handle Alert Popup in Selenium

āđāļŠāļĢāđŒ
āļāļąāļ‡
  • āđ€āļœāļĒāđāļžāļĢāđˆāđ€āļĄāļ·āđˆāļ­ 30 āļ.āļ„. 2024
  • Get all my courses for USD 5.99/Month - bit.ly/all-courses-subscription
    ðŸ”đ FREE Training's at training.rcvacademy.com ðŸ”đ
    In this Selenium WebDriver Tutorial we will learn How to Handle Alert Popup in Selenium WebDriver.
    JavaScript alerts, prompts and confirmations are native popup messages offered by JavaScript and can be handled by API provided by Selenium WebDriver.
    Handling JavaScript alerts is important when you are doing automation as these alerts cannot be handled with normal webelement identification techniques in Selenium.
    Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials. More tutorial playlists below:
    ✅ ALL PLAYLISTS (Software Testing Mentor)ðŸ”ļ / softwaretes. .
    ✅ ALL PLAYLISTS (RCV Academy)ðŸ”ļ th-cam.com/channels/ddU.html...
    ✅ JIRA BEGINNER TUTORIALðŸ”ļ bit.ly/jira-beginner-tutorial
    ✅ JIRA WORKFLOW TUTORIALðŸ”ļ bit.ly/2EzKOEB
    ✅ JIRA ADMINISTRATION TUTORIALðŸ”ļ bit.ly/36MPPFR
    ✅ JIRA TUTORIAL INTERMEDIATEðŸ”ļ bit.ly/Atlassian-JIRA-tutorials
    ✅ JIRA TUTORIALSðŸ”ļ bit.ly/jira-tutorials
    ✅ ZEPHYR TUTORIALðŸ”ļ bit.ly/zephyr-for-jira-tutorials
    ✅ SOAPUI TUTORIALðŸ”ļ bit.ly/Sopui-tutorial
    ✅ JSONPath TUTORIALðŸ”ļ bit.ly/2sIZIFG
    ✅ POSTMAN TUTORIALðŸ”ļ bit.ly/2PBbhI7
    ✅ ISTQB AGILE TESTER CERTIFICATION TUTORIALðŸ”ļ bit.ly/istqb-agile-tester-cert...
    ✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIALðŸ”ļ bit.ly/istqb-foundation-level-...
    ✅ CUCUMBER SELENIUM TUTORIALðŸ”ļ bit.ly/cucumber-selenium-tutorial
    ✅ TESTRAIL TUTORIALðŸ”ļ bit.ly/testrail-tutorial
    ✅ AGILE TUTORIALSðŸ”ļ bit.ly/agile-tutorials
    ✅ PYTHON TUTORIALSðŸ”ļ bit.ly/python-programming-tuto...
    ✅ PYTHON BEHAVE TUTORIALSðŸ”ļ bit.ly/python-behave-tutorial
    ✅ PRACTITEST TUTORIALðŸ”ļ bit.ly/practitest-tutorial
    ✅ JAVA TUTORIALðŸ”ļ bit.ly/2F1iL1B
    ✅ ZEPHYR TUTORIALðŸ”ļ bit.ly/zephyr-for-jira-tutorials
    ðŸ”ķ ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL ðŸ”ķ
    training.rcvacademy.com/
    ðŸ”ķ FOLLOW US ON TWITTER ðŸ”ķ
    / rcvacademy
    / swtmentor
    / mrmverma
    ðŸ”ķ LIKE US ON FACEBOOK ðŸ”ķ
    / softwaretest. .
    / rcvacademy47
    ðŸ”ķ OUR TUTORIAL WEBSITES ðŸ”ķ
    www.softwaretestingmentor.com
    www.rcvacademy.com
    ðŸ”ķ GET MY TRAININGS ON UDEMY ðŸ”ķ
    www.udemy.com/user/manish68/
    #SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™ • 9

  • @bautroixanh999
    @bautroixanh999 3 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

    Hello Sir, Thanks for such wonderful videos! I am enjoying my learning with the help of your videos

  • @Bell4Fun
    @Bell4Fun 2 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

    Awesome ðŸŦ‚

  • @freddiekhambata2506
    @freddiekhambata2506 3 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§

    Sir , how to handle the bootstrap modal using selenium? Also, let me know if the automation test is acceptable for a Captcha based form?

  • @muhammadanees7687
    @muhammadanees7687 3 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§

    Web driver vedeos are not displaying download option bar

  • @abhishekanand1558
    @abhishekanand1558 3 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +1

    why we are using switchTo() method again and again is it possible to switch on alert one time and whatever action we have to perform with that alert can do without writing again and again switchTo() method.

    • @softwaretestingmentor
      @softwaretestingmentor  3 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§ +2

      Hi Abhishek, The switch to method is used again and again in this tutorial just to navigate to the frame and click on button so that alert is popped up and I can show how to handle the alert then. Hope this helps. Regards,Manish

  • @snax_4820
    @snax_4820 3 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§

    The Cookie-Popup-Window in still not solved.

  • @umeshraut878
    @umeshraut878 2 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§

    My chrome browser is taking too much time to load, please suggest solution

    • @sivaramsathiamoorthi7257
      @sivaramsathiamoorthi7257 2 āļ›āļĩāļ—āļĩāđˆāđāļĨāđ‰āļ§

      WebDriverWait wait = new WebDriverWait(driver, 20);
      By addItem = By.xpath("//input[.='Add Item']");
      // get the "Add Item" element
      WebElement element = wait.until(ExpectedConditions.presenceOfElementLocated(addItem));
      //trigger the reaload of the page
      driver.findElement(By.id("...")).click();
      // wait the element "Add Item" to become stale
      wait.until(ExpectedConditions.stalenessOf(element));
      // click on "Add Item" once the page is reloaded
      wait.until(ExpectedConditions.presenceOfElementLocated(addItem)).click();
      Try this waituntil