Side notes: In tool like Selenium, wait can be done using Implicit and Explicit wait as discussed in the article here |
Here is the complete video explanation of different wait methods in coded UI testing. Here is the complete code from the above video
public void WaitForControl(PropertyType type, string propertyvalue) where T : HtmlControl { HtmlControl genericControl = (T)Activator.CreateInstance(typeof(T), new object[] { ParentWindow }); if (type == PropertyType.Name) genericControl.SearchProperties[HtmlControl.PropertyNames.Name] = propertyvalue; else if (type == PropertyType.Id) genericControl.SearchProperties[HtmlControl.PropertyNames.Id] = propertyvalue; //Wait For the control genericControl.WaitForControlCondition(x => genericControl.WaitForControlPropertyEqual(type.ToString(), propertyvalue)); }Thanks for watching the video and reading the article !!! Please leave your comments and let me know if there is anything needed to be improved in the post !!! Thanks, Karthik KK
Hi, This is a great set of videos. I am having a hard time figuring out the namespace for PropertyType.
Cheers
Tom
Hi Karthik,
How to increase default wait time of WaitForReadyTime. By default its value is 60 seconds, I want to change this to 120 or more .
Please help me to do this if your aware of this.
Regards,
Divya
Hi karthik, i would like to know why my recording break when it re uses the UIMap again . Also the control wont be ready in sometimes while running the scripts.
Im working on WInforms c#