October 20, 2010

WebAii Validate Current URL

Using Webaii, Use this code snip to validate the URL of the current page:

// Validate URL
StringAssert.Contains(ActiveBrowser.Url, "dev");

// URL Does Not Contain
Assert.IsFalse(ActiveBrowser.Url.Contains("index.jsp"));

 

Comments

Add your Comments

Feel free to leave a comment about this post.

- Feel Free to add HTML to your comment!