# Print dialog not able to handle

**URL:** <https://forum.robotframework.org/t/print-dialog-not-able-to-handle/3139>\
**Category:** Robot Framework\
**Created:** [25 January 2022 00:04 UTC](https://forum.robotframework.org/t/print-dialog-not-able-to-handle/3139 "2022-01-25T00:04:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grarun11](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@grarun11](https://forum.robotframework.org/u/grarun11)\
**Post date:** [25 January 2022 00:04 UTC](https://forum.robotframework.org/t/print-dialog-not-able-to-handle/3139/1 "2022-01-25T00:04:00Z")

</div>

Could not able to perform action on Cancel or Save button.  
Tried using

Press keys None Esc

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/f/fb371c907886d8bfc27adf32d7721cbd5ae4cc84.png)

Any advise to handle this?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [25 January 2022 00:19 UTC](https://forum.robotframework.org/t/print-dialog-not-able-to-handle/3139/2 "2022-01-25T00:19:27Z")

</div>

Hi @grarun11

Which Library are you using? Without knowing that no-one can help you, the approach will be different for each Library.

Given the screen shot seems to be Chrome, I’ll guess you might be using Selenium Library? did you try [Handle Alert](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Handle%20Alert)? I’m not sure if that works, I never tested the print dialogue in a browser before.

```python
Handle Alert	DISMISS

```

Dave.

---

<div class="post-metadata">

**Author:** ![grarun11](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@grarun11](https://forum.robotframework.org/u/grarun11)\
**Post date:** [25 January 2022 13:55 UTC](https://forum.robotframework.org/t/print-dialog-not-able-to-handle/3139/3 "2022-01-25T13:55:51Z")

</div>

yes I tried it didn’t work.

---

<div class="post-metadata">

**Author:** ![thangtcq](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/thangtcq/32/2591_2.png) [@thangtcq](https://forum.robotframework.org/u/thangtcq)\
**Post date:** [5 May 2023 04:05 UTC](https://forum.robotframework.org/t/print-dialog-not-able-to-handle/3139/4 "2023-05-05T04:05:34Z")

</div>

This is my solution  
Switch Window NEW  
Press Keys None TAB+SPACE  
Switch Window MAIN  
Hope to help you
