Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Get UIElement form UITestControl or AutomationElement

$
0
0

Is there any possibility to get UIElement from UITestControl or AutomationElement?

I tried to get it using HwndSource class but with no luck.

WpfText uiTestTextBlock = ...;
var textBlock = (TextBlock)HwndSource.FromHwnd(uiTestTextBlock.WindowHandle).RootVisual;


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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