public void loginpanel1(String u, String p) {
   Username.sendKeys(u);
   Sleeper.sleepTightInSeconds(2);
   Password.sendKeys(p);
   Sleeper.sleepTightInSeconds(2);
   Login.click();
 }
Esempio n. 2
0
 @Test
 public void addEmployeeTest() {
   Actions action = new Actions(driver);
   WebElement event = driver.findElement(By.xpath("//*[@id='menu_pim_viewPimModule']/b"));
   action.moveToElement(event).build().perform();
   Sleeper.sleepTightInSeconds(3);
   driver.findElement(By.linkText("Add Employee")).click();
   Sleeper.sleepTightInSeconds(3);
   driver.findElement(By.id("firstName")).sendKeys("prassi");
   driver.findElement(By.id("middleName")).sendKeys("prasanna");
   driver.findElement(By.id("lastName")).sendKeys("ch");
   driver.findElement(By.id("employeeId")).sendKeys("1111");
   driver.findElement(By.id("btnSave")).click();
 }