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

/* TestModalDialog (Only works in IE) */
		// open|../tests/html/test_modal_dialog.html|
		selenium.open("../tests/html/test_modal_dialog.html");
// skipped undocumented, unsupported op in >>>>>modalDialogTest//////../tests/TestModalDialogDialog.html//////<<<<<
		// click|modal|
		selenium.click("modal");
		// verifyAlert|no ways|
		verifyEquals("no ways", selenium.getAlert());
		// verifyLocation|*/tests/html/test_modal_dialog.html|
		verifyEquals("*/tests/html/test_modal_dialog.html", selenium.getLocation());

		checkForVerificationErrors();
	}
}
