Micro Focus QTP (UFT) Forums

Full Version: [UFT][WPF] WpfObejct: get visibility of scrollbars
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
in my application, I have a WpfObject obejct.

I would check if vertical or horizontal scrollbars are visibile.

With Spy, I checked that:

- ComputedHorizontalScrollBarVisibility = {Collapsed}

- ComputedVerticalScrollBarVisibility = {Visible}

How can I get this value?

I tried with:
Code:
WpfWindows("myapp).wpfObject("myobject").Object.ComputedHorizontalScrollBarVisibility

but it returns an object, how can I get the value?

In the native methods, I found:

GetHorizontalScrollBarVisibility (element)

GetVerticalScrollBarVisibility (element)

but, what should I write on (element)?

Thanks.