When I click the generate report on the browser, the Windows page pops up. After that, I would download the pdf by clicking the icon of PDF. Now the real issue is that I can’t close that pop-up window even when I use the close tab. It just closes the running browser. It won’t close the pop-up window. How can I solve this issue?
Hi @Samraat_Maharjan1 ,
Take an element exists activity to check pop-up exist and capture the pop-up screen, In element exists block do part, take click activity and Click on the “X” icon to close the pop-up window.
Sometimes some windows need to be attached again, so try attaching the popup window and then clicking on it, to avoid validations you can set the ContinueOnError property to True
Regards!
@Samraat_Maharjan1
the actual selector of the pop-up window, and adjust the delay time based on your application’s behavior and Additionally, you may want to consider using the “Element Exists” activity before attempting to close the window to ensure that the pop-up is still open and available for interaction.
I actually want to close that window as well when the robot fails. I basically want to close the pop-up window as well. But it won’t close when I use try-catch (inside catch). It only closes browser. @Ayushi_Jain4
@fernando_zuluaga
I actually want to close that window as well when the robot fails. I basically want to close the pop-up window as well. But it won’t close when I use try-catch (inside catch). It only closes the browser but won’t get pop up close.
I actually want to close that window as well when the bot fails. I basically want to close the pop-up window as well. But it won’t close when I use try-catch (inside catch). It only closes the browser. @Krishna_Raj