package com.thoughtworks.selenium.corebased;
import com.thoughtworks.selenium.*;
/**
 * @author XlateHtmlSeleneseToJava
 * Generated from E:\buildroot\Dev\selenium-rc_svn\trunk\rc\clients\java\target\selenium-server\tests/TestSelectWindow.html.
 */
public class TestSelectWindow extends SeleneseTestCase
{
   public void testSelectWindow() throws Throwable {
		selenium.setContext("Test SelectWindow", "info");

/* Test selectWindow */
		// open|../tests/html/test_select_window.html|
		selenium.open("../tests/html/test_select_window.html");
		// click|popupPage|
		selenium.click("popupPage");
		// waitForPopUp|myPopupWindow|1000
		selenium.waitForPopUp("myPopupWindow", "1000");
		// selectWindow|myPopupWindow|
		selenium.selectWindow("myPopupWindow");
		// verifyLocation|*/tests/html/test_select_window_popup.html|
		verifyEquals("*/tests/html/test_select_window_popup.html", selenium.getLocation());
		// verifyTitle|Select Window Popup|
		verifyEquals("Select Window Popup", selenium.getTitle());
		// close||
		selenium.close();
		// selectWindow|null|
		selenium.selectWindow("null");
		// verifyLocation|*/tests/html/test_select_window.html|
		verifyEquals("*/tests/html/test_select_window.html", selenium.getLocation());
		// click|popupPage|
		selenium.click("popupPage");
		// waitForPopUp|myNewWindow|1000
		selenium.waitForPopUp("myNewWindow", "1000");
		// selectWindow|myNewWindow|
		selenium.selectWindow("myNewWindow");
		// verifyLocation|*/tests/html/test_select_window_popup.html|
		verifyEquals("*/tests/html/test_select_window_popup.html", selenium.getLocation());
		// close||
		selenium.close();
		// selectWindow|null|
		selenium.selectWindow("null");
		// click|popupAnonymous|
		selenium.click("popupAnonymous");
		// waitForPopUp|anonymouspopup|1000
		selenium.waitForPopUp("anonymouspopup", "1000");
		// selectWindow|anonymouspopup|
		selenium.selectWindow("anonymouspopup");
		// verifyLocation|*/tests/html/test_select_window_popup.html|
		verifyEquals("*/tests/html/test_select_window_popup.html", selenium.getLocation());
		// click|closePage|
		selenium.click("closePage");

		checkForVerificationErrors();
	}
}
