New to Telerik Test Studio? Download free 30-day trial

How to Indicate a Partial Match for WPF Window Name

PROBLEM

I have a dynamic window title in my application. Elements in the window cannot be located during execution because the title differs from when it was recorded.

SOLUTION

Edit the Caption property for the Window node in the Elements Explorer. Use a leading tilde (~) character to indicate a partial match and remove the dynamic portion.

fig1
fig2
Original Window Caption
fig3
fig4
Edited for Partial Match
In this article