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

/* Test Open */
		// open|../tests/html/test_open.html|
		selenium.open("../tests/html/test_open.html");
		// verifyLocation|*/tests/html/test_open.html|
		verifyEquals("*/tests/html/test_open.html", selenium.getLocation());

		/* Should really split these verifications into their own test file. */
		// verifyLocation|regexp:.*/tests/html/[Tt]est_open.html|
		verifyEquals("regexp:.*/tests/html/[Tt]est_open.html", selenium.getLocation());
		// verifyNotLocation|*/foo.html|
		verifyNotEquals("*/foo.html", selenium.getLocation());
		assertTrue(selenium.isTextPresent("This is a test of the open command."));
		// open|../tests/html/test_page.slow.html|
		selenium.open("../tests/html/test_page.slow.html");
		// verifyLocation|*/tests/html/test_page.slow.html|
		verifyEquals("*/tests/html/test_page.slow.html", selenium.getLocation());
		// verifyTitle|Slow Loading Page|
		verifyEquals("Slow Loading Page", selenium.getTitle());

		checkForVerificationErrors();
	}
}
