package tests;
import com.thoughtworks.selenium.*;
import org.testng.annotations.*;
import org.testng.internal.thread.TestNGThread;
import framework.BaseTest;
public class test1 extends BaseTest {
@Test public void test() throws Exception {
selenium.open("https://members.kaiserpermanente.org/kpweb/signon.do");
selenium.windowMaximize();
selenium.windowFocus();
TestNGThread.sleep(3000);
// selenium.waitForPageToLoad("30000");
assertTrue(selenium.isElementPresent("//div[@id='brand']/img"));
assertTrue(selenium.isElementPresent("userid"));
assertTrue(selenium.isElementPresent("password"));
selenium.type("password", "jhkjh");
}
}
No comments:
Post a Comment