# Selecting Pop Up with its Class

**URL:** <https://forum.katalon.com/t/selecting-pop-up-with-its-class/13828>\
**Category:** Web Testing\
**Tags:** katalon-recorder\
**Created:** [October 19, 2018, 9:11am UTC](https://forum.katalon.com/t/selecting-pop-up-with-its-class/13828 "2018-10-19T09:11:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erdem\_Uygun](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@Erdem\_Uygun](https://forum.katalon.com/u/Erdem_Uygun)\
**Post date:** [October 19, 2018, 9:11am UTC](https://forum.katalon.com/t/selecting-pop-up-with-its-class/13828/1 "2018-10-19T09:11:23Z")

</div>

Hi, I could not target and select a pop up with its class as it does not have a title or index value.

Right now, I could not make Katalon Recorder click on a button placed on the pop up. It throws the “unknown error”. I tried selectWindow, selectPopUp and focus commands.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![Galina\_Moore](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@Galina\_Moore](https://forum.katalon.com/u/Galina_Moore)\
**Post date:** [October 19, 2018, 12:16pm UTC](https://forum.katalon.com/t/selecting-pop-up-with-its-class/13828/2 "2018-10-19T12:16:20Z")

</div>

If you’re just wanting to click OK or Cancel on the popup window you can use WebUI.acceptAlert() or .dismissAlert() actions.  
Otherwise maybe there is something helpful here:

> **[Solving Pop-up dialog issue with Katalon Studio](https://docs.katalon.com/katalon-studio/tutorials/pop_up_dialog_issue.html#what-are-issues-with-pop-up)**
>
> When performing automation testing, you may sometimes deal with pop-up dialog issue. This tutorial will show you how to deal with that.

---

<div class="post-metadata">

**Author:** ![Erdem\_Uygun](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@Erdem\_Uygun](https://forum.katalon.com/u/Erdem_Uygun)\
**Post date:** [October 19, 2018, 12:27pm UTC](https://forum.katalon.com/t/selecting-pop-up-with-its-class/13828/3 "2018-10-19T12:27:03Z")

</div>

Hi Galina, do commands you provided work in Katalon Recorder as well? They seem to be for Katalon Studio.

---

<div class="post-metadata">

**Author:** ![Galina\_Moore](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@Galina\_Moore](https://forum.katalon.com/u/Galina_Moore)\
**Post date:** [October 22, 2018, 1:18pm UTC](https://forum.katalon.com/t/selecting-pop-up-with-its-class/13828/4 "2018-10-22T13:18:40Z")

</div>

Yes they’re for Katalon studio. I usually just add them in script mode.
