How can I use if condition for perticular browser window?

I’m want to close the browser window of my application if it is already open before I run the automation. How can I do that since, if condition requires only boolean value.

HI @Jalan_Pranav

You can use close application activity to close your browser

Regards
Robin

@Jalan_Pranav

Welcome to our UiPath community.

Use Kill Process activity to close the browser window and mention Process name as below.

Chrome - “chrome”
Internet Explorer - “iexplore”
MS Edge - “msedge”

1 Like

HIb @Jalan_Pranav

For getting an bool Value.

you can use “Element Exist Activity”

Indicated the appropriate browser → Create an output variable in the properties panel (BoolBrowser)

You can use “IF condition” → BoolBrowser

Then → “Kill Process”

Hope it will help you

Regards
Gokul

3 Likes

This worked. Thank you so much.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.