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.
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.
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
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 -
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.
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
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?
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
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
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.
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
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
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.
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.
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.
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
@@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.
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
Exactly what I have been looking for a long time. Thank you so much. You are awesome!
You're welcome Andreas
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.
Hi Intan, I will check, Meanwhile check the Authenticate keyword - docs.katalon.com/katalon-studio/docs/webui-authenticate.html
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.
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
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
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
-
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.
Hi, this can help forum.katalon.com/t/how-to-take-the-screenshots-of-javascript-alert/12179
Hi Raghav, can you show how to validate using katalon?
I will check on that, Let me know some specific scenario Haney
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
Okay, I will plan to add a session, I hope you can also find online examples for this
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?
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
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
Hi Vishal, can try using javascript here
Hi raghav ,
Good evening..
companies prefer using katalon studio nowadays ?
Yes, based on needs and usefulness for projects, organisations are using Katalon Studio
@@RaghavPal ok, thanks
Hi Raghav , how to handle alert in mobile application using katalon studio. I cant see accept alert mobile keyword.
Hi Sruthi, pls check this docs.katalon.com/katalon-studio/docs/handle_alert_dialog_mobile_app.html
how to verify text for 'In-context pop-ups?? Plz guide
HI Amit, not sure how diff is this from a normal popup, I will check on this
@@RaghavPal ok, i will wait
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
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.
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.
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.
@@RaghavPal how to trigger a test on say 10 machines using selenium grid. That's the main issue.
I will have to prepare a session on this. Can take some time.
Hi Raghav , how to close a pop window by clicking cross x button ? Can u pls help ?
Hi, you can call dismiss alert action, docs.katalon.com/katalon-studio/docs/handle_alerts.html#handle-accept-alert
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
Hi Junes, what is the exact error shown in logs
@@RaghavPal com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords...... gives me com.kms.katalon.core.exception.StepFailedException
HI Junes, I will need to see detailed logs for troubleshooting
Please help me to handling snackbar Sir?
I will check on this forum.katalon.com/t/snackbar-on-web-testing/45246
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.
Hi Jigar, you can also try switch to window keyword
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
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
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.
Hi, Pls see if this helps - forum.katalon.com/t/how-to-handle-show-notifications-pop-ups/11712
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.
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.
thank u
Most welcome
Sir how to handle Exit intent popup in katalon studio
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
@@RaghavPal ok sir will try .thanks
How to set alert text when you have multiple input fields (for ex username and password)? Thanks :)
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
@@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.
Okay then try the other link and also check winnium - docs.katalon.com/katalon-studio/docs/katalon-with-winium-for-desktop-applications.html
How to handled feedback popup in katalon tools
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
custom keyword please , you are the best bro
Thanks Agus, you can find all videos here - automationstepbystep.com/online-courses/