Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Get WPFTextBlock font color

$
0
0

Hi,

In my application, I have a static text displayed. This is identified as a WPFTextBlock by Silk Test Workbench 15.5.

How to get the color of that WPFTextBlock?

Dim font_colour = _desktop.WPFTextBlock("@automationId='MyMarking_Component_1a_QuotaValue'").GetProperty("currentStyle:color")
Msgbox(font_colour)

The above statement prompted an error saying that "The property 'currentStyle:color' is not supported for WPF."


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>