Katalon Studio | How to handle alert popup boxes

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии • 65

  • @andreashofer8745
    @andreashofer8745 5 лет назад +1

    Exactly what I have been looking for a long time. Thank you so much. You are awesome!

    • @RaghavPal
      @RaghavPal  5 лет назад

      You're welcome Andreas

  • @vanillaicecr34m
    @vanillaicecr34m 4 года назад +1

    hi raghav, do you mind to explain more about handle window native dialog through ? in my case, i want to handle print pop up dialog,but i cant interact to the dialog i think is something to do with the . thank you in advance.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Intan, I will check, Meanwhile check the Authenticate keyword - docs.katalon.com/katalon-studio/docs/webui-authenticate.html

  • @cobramafia6427
    @cobramafia6427 4 года назад +1

    Thanks for the great video so far I had a quick doubt regarding my Application.
    When I try to enter the URL I get a browser popup to enter Username and Password, how can I handle the same.
    I tried with Object spy but cannot capture them nor with inspect element too.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi, sorry for late relpy. There are several options to handle that. In case it is authentication box, you can try the keyword
      Authenticate - docs.katalon.com/katalon-studio/docs/webui-authenticate.html
      Or you can use custom chrome
      ruclips.net/video/GigP4DEQ1sA/видео.html
      forum.katalon.com/t/opening-chrome-browser-with-a-predefined-custom-chrome-profile-which-stores-session-info-such-as-credentials-and-cookies/20966

  • @dongengmarvel
    @dongengmarvel 5 месяцев назад

    Hey Sir. Great video btw. I wanna ask, how do I handle alert for iOS automation testing? This one seems to be not working for mobile! Thanks

    • @RaghavPal
      @RaghavPal  5 месяцев назад

      To handle alerts in iOS automation testing using Katalon Studio, follow these steps:
      Step 1: Identify the Alert
      * Make sure you have an iOS application under test that displays an alert.
      * Verify that the alert is displayed when a specific action is performed (e.g., clicking a button).
      Step 2: Inspect the Alert Element
      * Open Katalon Studio and create a new test case or open an existing one.
      * Start the iOS application under test using Katalon Studio's built-in iOS simulator or a physical device.
      * Use Katalon Studio's Spy feature to inspect the alert element:
      + Click on the Spy button in the top toolbar or press `Ctrl + Shift + I` (Windows) or `Cmd + Shift + I` (Mac).
      + Move the mouse cursor over the alert element to highlight it.
      + Click on the alert element to select it.
      + In the Object Spy panel, you should see the properties of the alert element, including its `xpath` or `id`.
      Step 3: Handle the Alert using Mobile Built-in Keywords
      * In your test case, add a new step to handle the alert using Katalon Studio's built-in mobile keywords.
      * Choose the `Mobile` keyword category and select the `Accept Alert` or `Dismiss Alert` keyword, depending on your test scenario.
      * Configure the keyword by providing the `xpath` or `id` of the alert element, which you obtained in Step 2.
      * For example:
      ```groovy
      Mobile.acceptAlert(xpath: "//XCUIElementTypeAlert")
      ```
      or
      ```groovy
      Mobile.dismissAlert(id: "alert_id")
      ```
      Step 4: Add Additional Steps (Optional)
      * If needed, add additional steps to your test case to perform actions after handling the alert (e.g., verifying the application state or performing further interactions).
      Step 5: Run the Test
      * Save your test case and run it using Katalon Studio's Run button or by pressing `F5`.
      * Observe the test execution and verify that the alert is handled correctly.
      By following these steps, you should be able to handle alerts in your iOS automation testing using Katalon Studio
      -

  • @Srivathsav.M.I
    @Srivathsav.M.I 3 года назад

    Hi Raghav, how can I take a screenshot in Katalon such that the pop up alert is also captured? WebUI.screenshot() is not capturing the alert pop up box, it's capturing only the web page.

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi, this can help forum.katalon.com/t/how-to-take-the-screenshots-of-javascript-alert/12179

  • @panadolization
    @panadolization 3 года назад

    Hi Raghav, can you show how to validate using katalon?

    • @RaghavPal
      @RaghavPal  3 года назад

      I will check on that, Let me know some specific scenario Haney

    • @panadolization
      @panadolization 3 года назад

      Thanks for replying@@RaghavPal i want to validate the text field which is mandatory to fill in before submit the form. When i leave the text blank, it will prompt at the text with "please fill out this field". As you can see the code below is having 'required' tag. Thus browser is not allow to submit the form until the text is filled in
      Do i need to use verify alert present or verify element present for this kind of alert? I am using this demo site for katalon practice (katalon-demo-cura.herokuapp.com/profile.php#login)
      Your help is much appreciated

    • @RaghavPal
      @RaghavPal  3 года назад

      Okay, I will plan to add a session, I hope you can also find online examples for this

  • @jeysumonty
    @jeysumonty 3 года назад

    Hi Raghav, Thanks for this video! very helpful. May I just ask, if the alert handling also working with popups that were triggered by loading of the page, because on your video it is triggered by button?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Jessu, yes you can check, Also for a windows alert you can check the keyword forum.katalon.com/t/how-can-i-handle-window-based-alert/33372

  • @vishalshah6594
    @vishalshah6594 3 года назад

    Hi Raghav, all your videos and courses are really helpful. Many thanks for that.
    Please help me in following query.
    I am testing a Retail website and I am unable to handle the print preview popup.
    Whenever I click on Pay button, it opens up a print popup with Print & Cancel Button.
    I am not able to cancel or escape that window.
    thanks

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Vishal, can try using javascript here

  • @sumatoli.
    @sumatoli. 5 лет назад

    Hi raghav ,
    Good evening..
    companies prefer using katalon studio nowadays ?

    • @RaghavPal
      @RaghavPal  5 лет назад

      Yes, based on needs and usefulness for projects, organisations are using Katalon Studio

    • @sumatoli.
      @sumatoli. 5 лет назад +1

      @@RaghavPal ok, thanks

  • @sruthinitheesh5275
    @sruthinitheesh5275 3 года назад

    Hi Raghav , how to handle alert in mobile application using katalon studio. I cant see accept alert mobile keyword.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Sruthi, pls check this docs.katalon.com/katalon-studio/docs/handle_alert_dialog_mobile_app.html

  • @amitmishra4743
    @amitmishra4743 3 года назад

    how to verify text for 'In-context pop-ups?? Plz guide

    • @RaghavPal
      @RaghavPal  3 года назад

      HI Amit, not sure how diff is this from a normal popup, I will check on this

    • @amitmishra4743
      @amitmishra4743 3 года назад

      @@RaghavPal ok, i will wait

  • @pb6096
    @pb6096 5 лет назад

    Hi Raghav,thanks for the video,can I automate my test cases using katalon for angular based web application and also can I use pop test cases for angular applications.
    Thanks

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi, yes you can check for angular applications. There are some angular specific keywords as well. I will suggest pls do a POC before finalising.

  • @ashubapatu
    @ashubapatu 5 лет назад

    Hey Raghav, I want to run single test case on a grid at the same moment. I am using docker swarm. Let me know the way.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi, for the complete process from scratch, I will have to check and will need time. Request you to take some online help and let me know the steps you are doing. I can guide you from there.

    • @ashubapatu
      @ashubapatu 5 лет назад

      @@RaghavPal how to trigger a test on say 10 machines using selenium grid. That's the main issue.

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      I will have to prepare a session on this. Can take some time.

  • @pddjsp
    @pddjsp 3 года назад

    Hi Raghav , how to close a pop window by clicking cross x button ? Can u pls help ?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi, you can call dismiss alert action, docs.katalon.com/katalon-studio/docs/handle_alerts.html#handle-accept-alert

  • @junes2771
    @junes2771 5 лет назад

    I have been following everything, and I tried other sources as well. But for some reasons com.kms.katalon.core things are not working for me

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Junes, what is the exact error shown in logs

    • @junes2771
      @junes2771 5 лет назад

      @@RaghavPal com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords...... gives me com.kms.katalon.core.exception.StepFailedException

    • @RaghavPal
      @RaghavPal  5 лет назад

      HI Junes, I will need to see detailed logs for troubleshooting

  • @indrawannirmala6885
    @indrawannirmala6885 4 года назад +1

    Please help me to handling snackbar Sir?

    • @RaghavPal
      @RaghavPal  4 года назад

      I will check on this forum.katalon.com/t/snackbar-on-web-testing/45246

  • @jigarpatel3112
    @jigarpatel3112 4 года назад

    How would i click on a page(Example: Instagram like button). I tried finding the object but double click or click function does not work.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Jigar, you can also try switch to window keyword

    • @jigarpatel3112
      @jigarpatel3112 4 года назад

      Automation Step by Step - Raghav Pal i will try that . Is there a way where I can loop few steps of the test.
      Eg I have 15 steps. Steps 1 to 5 are of login which we want only once and after login I want the test to open multiple urls and like which the same user credentials. For its logging in every time it opens a new url. So my question is how can we only loop step 5 to 15 and not complete loop from 1 to 15

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Jigar, you can record and keep the login test separately and then use this in other tests using Call Test keyword - Check - ruclips.net/video/FU7XmeFH1u4/видео.html

  • @sweet_jae
    @sweet_jae 5 лет назад

    Hi! Please make an example on how to handle "Show notifications" alert on Chrome. I'm still on training and I'm stuck on this. I followed your tutorial but it's not working for me.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi, Pls see if this helps - forum.katalon.com/t/how-to-handle-show-notifications-pop-ups/11712

    • @sanathkumar5404
      @sanathkumar5404 4 года назад

      To disable all notification popups permanently, do the following:
      1.) Open Project > Settings > Desired Capabilities > WebUI > Chrome
      2.) Click Add and set:
      Name = prefs
      Type = Dictionary
      3.) Click on the ellipses under the Value column. The Dictionary Property Builder window will appear. Add a new property with:
      Name = profile.default_content_setting_values.notifications
      Type = Number
      Value = 2.0
      4.) Click OK, then OK again to apply the settings.

    • @sanathkumar5404
      @sanathkumar5404 4 года назад

      To enable all notification popups permanently, do the following:
      1.) Open Project > Settings > Desired Capabilities > WebUI > Chrome
      2.) Click Add and set:
      Name = prefs
      Type = Dictionary
      3.) Click on the ellipses under the Value column. The Dictionary Property Builder window will appear. Add a new property with:
      Name = profile.default_content_setting_values.notifications
      Type = Number
      Value = 1.0
      4.) Click OK, then OK again to apply the settings.

  • @maulanaihsans6617
    @maulanaihsans6617 2 года назад

    thank u

  • @shivaniotari8831
    @shivaniotari8831 3 года назад

    Sir how to handle Exit intent popup in katalon studio

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Shivani, I believe as of now there is no direct in-built keyword for this, You can try using a custom keyword and take help of javascript

    • @shivaniotari8831
      @shivaniotari8831 3 года назад

      @@RaghavPal ok sir will try .thanks

  • @gordonnorris4202
    @gordonnorris4202 5 лет назад

    How to set alert text when you have multiple input fields (for ex username and password)? Thanks :)

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      Hi Sebi, first we have to confirm it is the alert from browser (means this is a part of browser and not windows) You can check this by just accepting or cancel the alert. If that works, the next step will be to switch to alert and then add credentials i.e. do a sendKeys and then press tab and again do sendKeys for the next field.
      The other case if its not browser alert and is part of windows, then this will not work. One of the option here can be to create a custom keyword for this. You can take help from here - forum.katalon.com/t/katalon-studio-native-popup-window-and-upload-file/19386
      OR
      check winnium

    • @gordonnorris4202
      @gordonnorris4202 5 лет назад

      @@RaghavPal Thanks a lot. When I'm accessing the app I'm prompting directly with the username/password popup, so yes it is not a js it is from windows.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Okay then try the other link and also check winnium - docs.katalon.com/katalon-studio/docs/katalon-with-winium-for-desktop-applications.html

  • @swathich6497
    @swathich6497 5 лет назад

    How to handled feedback popup in katalon tools

    • @RaghavPal
      @RaghavPal  5 лет назад

      HI Swathi, if they are part of browser you should be able to handle them the same way or check if we can add in desired capabilities to suppress popup on chrome

  • @awal5652
    @awal5652 5 лет назад

    custom keyword please , you are the best bro

    • @RaghavPal
      @RaghavPal  5 лет назад

      Thanks Agus, you can find all videos here - automationstepbystep.com/online-courses/