How to convert an object type variable to Uipath.Core.Browser type variable

Hi ,

Can any one suggest me how to convert an object variable to Uipath.Core.Browser type variable.

Thanks in Advance.

Hi @Rajeswari24

click variables tab in down click variable type drop down click browse for types

image

Type name enter Uipath.Core.Browser and click ok type will be change.

Regards,
Kommi Jeevan.

2 Likes

I have an output variable whose type is Object. I want to convert that to Browser Type.
For example-
config(“browserType”) - this variable type is object , i want that to convert to Uipath.Core.Browser

1 Like

Hi :slight_smile:!
Same issue here. We want to use Config(“myBrower”) to transport Browser from one .xaml to another one.
How to cast Object → Browser ?

Alex

Did you find a way to do that? I would like to do that too

1 Like

Hi Rajeswari,

hope this will help you

System.Enum.GetNames(GetType(BrowserType)) is returning a String()
DirectCast(BrowserType.Parse(getType(BrowserType), strBrowserTypeName),BrowserType

Regards,
Akhil B

1 Like

Hi @Bachali ,

Do you have .xaml for this? Because I do not understand.

Regards,
Dogu K

kindly note:

this topic is in origin about converting an Object Variable to a Browser variable
the later mentioned Enum handling is a different case

For the Enum handling have a look here (also check the referenced ither topics)

grafik

1 Like

that’s works for me.

Thanks!!