Thursday, December 2, 2010

Coded UI tests - IE8 validation URL trick

Any test should include “assert” part. Validation of expected Url is common for any web tests. I use “Coded UI Test Builder” for capturing application objects and for finding out their right properties that are need to be validated. When object is captured it is indicated by the blue outline.

I selected the Address Bar in IE8, but this object did not include any property with url address. I was surprised, because it worked as expected for IE7.



After several efforts, I decided to post the question to the “Visual Studio UI Automation Testing” forum (see more detail here)
Finally, the right object was found: control type – HtmlDocument, property – PageUrl.

No comments:

Post a Comment