Role:Client, Name:"User name:"
Role:Client, Name:"Password:"
My code is as follows:
Code: Select all
Element win = ... the login dialog ...
Element user = win.FindChild(Role.Client, "User name:");
Element pass = win.FindChild(Role.Client, "Password":);
user.Select(Selection.TakeFocus);
Application.SendKeys("bob");
Application.Sleep(100);
pass.Select(Selection.TakeFocus);
Application.SendKeys("secret");
I've printed the element location and size for user and pass and the values are correct.
How do I force an element to take the focus?
Thanks