Conversion from Core.Browser to string

How can I convert a variable of type Core.Browser to String, so that I can see content during run time without debugging?

Hi,

Which information do you want to see in Browser instance?

Regards,

Hi @DIBYAPRAKASH_PRADHAN ,

Could you let us know what is the content you want to retrieve from the Browser ?

Some Options :
image

1 Like

Hi @Yoichi ,

I can get following content from immediate panel when debugging, but I want to print this as log message or in message box.

image

Thanks in advance :slight_smile:

maybe better to select the properties manually for a custom string representation

A quick dirty approach could be the serialization to a JSON string:

Maybe afterwards remove all non wanted properties e.g. the image base64 string

Hi @supermanPunch,

I want browser.Element to print in log message activity.

You can’t. Core.Browser is an object, not any type of value that would mean something to a human. What are you trying to do?

Hi,

UiElement instance has various properties etc. Which information do you need?
If you need selector string, the following will work, for example.

varBrowser.Element.Selector.Text

Regards,

1 Like

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