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/TestModalDialogDialog.html.
 */
public class TestModalDialogDialog extends SeleneseTestCase
{
   public void testModalDialogDialog() throws Throwable {
		selenium.setContext("Test Modal Dialog Dialog", "info");

/* Test modal dialog dialog */
		// verifyLocation|*/tests/html/test_modal_dialog_dialog.html|
		verifyEquals("*/tests/html/test_modal_dialog_dialog.html", selenium.getLocation());

		boolean sawThrow4 = false;
		try {
			// originally verifyElementPresent|close|
				assertTrue(selenium.isElementPresent("close"));
		}
		catch (Throwable e) {
			sawThrow4 = true;
		}
		verifyFalse(sawThrow4);
		
		// click|close|
		selenium.click("close");

		checkForVerificationErrors();
	}
}
