I want to press a button within a wpf application but it fails. Below the code and the error.
This code works on a normal windows form ( ex.calculator ).
What is wrong here ?
Code: Select all
Form form = Host.Local.FindChild<Ranorex.Form>("'^Version:\\ 11\\.45\\.4391\\.36066']");
form.Activate();
Button button = form.FindChild<Ranorex.Button>("Button2");
button.Click();
Code: Select all
Test Failed Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'button'.
Koen