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

/* Test Type */
		// open|../tests/html/test_type_page1.html|
		selenium.open("../tests/html/test_type_page1.html");
		// verifyValue|username|
		verifyEquals("", selenium.getValue("username"));
		// type|username|TestUser
		selenium.type("username", "TestUser");
		// verifyValue|username|TestUser
		verifyEquals("TestUser", selenium.getValue("username"));
		// verifyValue|password|
		verifyEquals("", selenium.getValue("password"));
		// type|password|testUserPassword
		selenium.type("password", "testUserPassword");
		// verifyValue|password|testUserPassword
		verifyEquals("testUserPassword", selenium.getValue("password"));
		// clickAndWait|submitButton|
		selenium.click("submitButton");
		assertTrue(selenium.isTextPresent("Welcome, TestUser!"));

		checkForVerificationErrors();
	}
}
