1 sheets tagged with "WatiN":
|
Resolver One and WatiN - Web page automation and testing This is a simple example of how to use the new WatiN 2.0 library in Resolver One. WatiN can be used to automate testing of webpages in Internet Explorer, and version 2.0 has partial support for Google Chrome and Firefox. You basically use WatiN to create a script of what you want to do on a webpage (ie: click, type, browse to...). This example takes a list of search terms and compares how many results are provided by Google, Bing, and Yahoo. This is a simple task, but WatiN can be used for much more advanced automation on complex sites even including AJAX webpages. For a more complex example, see the link below for an IronPython script that downloads a list of incoming and outgoing call data from the Vonage website. NOTE: if you are using Windows Vista with IE7, you will need to uncheck the "Enable Protected Mode" box for the Internet Zone on the Security tab of Internet Options before Watin will work. Otherwise, IE7 will open two windows (one blank, and one for Google) and then give a timeout error. Temporarily disabling Protection Mode and then restarting the browser will allow the sample to run. This error does not occur in IE8 or on Windows XP. See link below for more information. |
