in

Fort Worth .NET Users Group

All Tags » WatiN (RSS)

Browse by Tags

  • WatiN API Reference - DIV

    This method is used to make visible elements contained within a DIV tag on a web page. It contains a host of properties to help manipulate the information therein. Example of Usage This example utilizes the main.html page that is distributed with WatiN to highlight some of the methods available with...
    Posted to TestDriven.Me (Weblog) by ddodgen on 08-26-2008
  • WatiN API Reference - Dispose

    This method is used to release resources no longer needed by the current instance of the browser. Normally, you can omit this statement since it is called internally by the IE instance when it closes itself. Once Dispose is called, the IE instance is no longer valid and cannot be used. The only valid...
    Posted to TestDriven.Me (Weblog) by ddodgen on 08-20-2008
  • WatiN API - DialogWatcher

    The dialog watcher class is used to handle javascript and other dialogs. The IE instance can have a dialog watcher which can have dialog handlers assigned to it to assist in processing pop up dialogs. Example of Usage This is a rework of the TestAddDialogHander2 test that was introduced earlier: '''...
    Posted to TestDriven.Me (Weblog) by ddodgen on 08-11-2008
  • WatiN API Reference - ContainsText

    This method is used to determine if the web page has specific text being displayed. The text to be found must be in the HTML or a label control, but cannot be located within a textbox, button or other control. Example of Usage This is the simplest usage of the method: ''' <summary>...
    Posted to TestDriven.Me (Weblog) by ddodgen on 07-31-2008
  • WatiN API Reference - Close

    This method is used to close the current instance of the browser. If you want to leave the browser open at the end of the test, you can omit this statement. This will allow you to examine the contents of the browser, but you will have to close it yourself. If you are running more than one test at a time...
    Posted to TestDriven.Me (Weblog) by ddodgen on 07-14-2008
  • WatiN API - ClearCookies

    I could not get this method to work as expected for me. It is designed to clear cookies for either a specific web site or all cookies depending on whether you pass a web site URL as its parameter. When I tried it in the below test, it failed because of no security access to clear the cookie data in IE7...
    Posted to TestDriven.Me (Weblog) by ddodgen on 07-03-2008
  • WatiN API Reference - ClearCache

    This method contains some gotchas. From its method name you would think that it would clear out the system cache, at least for the web page currently being viewed, but this is a bit of a misconception. The documentation on the WatiN site indicates that this method is used to clear the browser cache and...
    Posted to TestDriven.Me (Weblog) by ddodgen on 07-01-2008
  • WatiN API - Checkboxes

    The Checkboxes method allows access to all the checkboxes on the web page. It is primarily used to find a checkbox when you are not able to access it by normal means, such as ID or Name. The following test looks for a checkbox that follows a specific text label, and then tests changing its value. Example...
    Posted to TestDriven.Me (Weblog) by ddodgen on 06-26-2008
  • WatiN API Reference - CheckBox

    The Checkbox method allows access to checkboxes on the web page, as you might expect. As with most controls that WatiN exposes, most of the properties are read only, such as text, tag name, etc. The primary purpose of the method is to allow WatiN to examine the current value or to check or uncheck the...
    Posted to TestDriven.Me (Weblog) by ddodgen on 06-23-2008
  • WatiN API - CaptureWebPageToFile

    This is a very useful method for documentation and reviewing test results. Its purpose is to save a screen shot of the web page in its current state as an image file for later review. The type of image file saved is based on the file extension passed in the parameter. Currently file formats supported...
    Posted to TestDriven.Me (Weblog) by ddodgen on 06-19-2008
Page 1 of 3 (25 items) 1 2 3 Next >
Copyright FWDNUG 2008
Powered by Community Server (Commercial Edition), by Telligent Systems