Micro Focus QTP (UFT) Forums
[UFT][WPF] WpfObejct: get visibility of scrollbars - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: [UFT][WPF] WpfObejct: get visibility of scrollbars (/Thread-UFT-WPF-WpfObejct-get-visibility-of-scrollbars)



[UFT][WPF] WpfObejct: get visibility of scrollbars - robertosalemi - 06-03-2016

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.