How to get url from uiElement passed back from Use Application/Browser activity

in Use Application/Browser activity, a UiElement can be passed back as output. I’m trying to figure how how I can make use of that for testing, etc. Is there a way I can extract the url from that element in code?

I’ve tried out_Browser.Get(“url”) and it errors. I get:
Attribute not supported by the current UiNode.

I want to do this as code, not an activity. Anybody have any idea how I can do this?

when out_Browser is of DataType: UiElement you can analyze it within the immediate panel

and check for all available attributes by
out_Browser.Attributes

then you will see if an url related attribute is offered or not. Kindly note: Attribute names are case sensitive

Thanks to @ppr for pointing the way here. The easy answer is:

out_Browser.Get("URL")

@Terry_Marr
perfect so when case sensitive attribute name did the trick, then let’s close the topic by marking the solving post

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