How to logout an application after executing test case

My problem is i created a Flow and I need to verify it , I successfully verified it in then block But I need to log out I tried to use the click activity to log out but it shows the error use the use application browser & when I tried use application browser activity the flow get disturbed because when workingflow complete the when activity & goes to Then activity inside the is I use “use application/Browser activity” application again open Should not open again right how to over come it ?

Go to the property of Use Application and select Never in Open property.

Screenshot for your reference:
image

This will resolve your issue!

Regards,
Ajay Mishra

1 Like

No its not working it through Error as
Use Browser Edge: Home | Salesforce: No open windows found for ‘msedge.exe’. Please check if the application is running.

Using Application/Browser Activities

  1. Identify Logout Element: Look for the element in the application that triggers the logout functionality (e. Click Activity: If the logout action involves clicking a button, use a Click Activity and target the logout button.
  2. Type Into Activity (For Menu Navigation): If logging out involves navigating through menus, use Type Into Activities to simulate keyboard presses (e.g., Alt+F4) or click activities to navigate through menus.
  3. Close Window/Browser Tab: Finally, use the Close Window activity (for desktop applications) or Close Tab activity (for browsers) to close the application window or browser tab.

Check out Execution Templates. You can use them as a wrapper around your test cases to do things like error handling and logging out of a system as needed.