Use Application/Browser for two different webpages

This question is regarding to find out recommended way of implementing “Use application/Browser” activity for web app. I am new to UiPath, so this might me very basic question.

For each web page like login and home screen, do I need to use separate use application/browser instance ? or I can put entire flow in one activity

@Jay_Patel1989

its better to use one use application/browser activity

if you are working with one application then place the entire flow in it

Hi @Jay_Patel1989

You can use one use application/browser activity through out the flow. Inside this activity only you can use the UI activities.

No need to use multiple use application/browser activity for login and homepage. Use only one.

Hope it helps!!

@mkankatala - Thank you for reply. will it wok if both have different URLs ? e.g. www.abc.com/Home and www.abc.com/login

@Shiva_Nikhil - Thank you for reply. will it wok if both have different URLs ? e.g. www.abc.com/Home and www.abc.com/login

As long as it’s all happening inside one browser window, and things aren’t opening in new tabs/windows, you just use one Use Application/Browser and put all your login steps into it.

Typically I do the login with one Use Application/Browser, and output the browser UI object as a variable. Then I use the variable as inputs to other Use Application/Browser activities in other parts of the automation. For example, I attempt login before getting an item from the queue. That way if the login fails I haven’t affected any queue items yet. Keep in mind if you’re passing from one Use Application/Browser to another, you need to set them NOT to close the browser.

Also, I suggest doing the free training on the UiPath Academy web site.

1 Like

Yes. After the browser is opened the URL is irrelevant.

1 Like

@Jay_Patel1989

yes it will work

after login into the application

the activities inside the use application/browser can make the selectors dynamic

cheers

1 Like

If your first step is login then give the login URL.

When using use application/browser activity indicate on the login page it will automatically captures the screenshot and url in the activity.

After login you are going to home page no need to use another use application/browser activity.

Hope you understand!! @Jay_Patel1989

1 Like

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