Facebook
From Harmless Pelican, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 243
  1. package com.deviniti.ufe.nss.test.view360.Tests;
  2.  
  3. import com.deviniti.ufe.nss.test.view360.Pages.LoginPage;
  4. import com.deviniti.ufe.nss.test.view360.Pages.MainPage;
  5. import org.junit.Test;
  6. import org.openqa.selenium.By;
  7. import org.openqa.selenium.WebDriver;
  8. import org.openqa.selenium.chrome.ChromeDriver;
  9. import org.testng.annotations.BeforeTest;
  10.  
  11. public class IdentificationWorkWithClient {
  12.  
  13.     public WebDriver driver;
  14.     LogInTest lt;
  15.     LoginPage lp;
  16.     private By pesel = By.xpath("//input[@placeholder='Wpisz PESEL']");
  17.  
  18.     public IdentificationWorkWithClient() {
  19.         this.driver = driver;
  20.     }
  21.  
  22.     public void Pesel(String strPesel) {
  23.         driver.findElement(pesel).sendKeys(strPesel);
  24.         this.Pesel(strPesel);
  25.     }
  26.  
  27.     @Test
  28.     public void Identification() {
  29.         lp = new LoginPage(driver);
  30.         lt.setup();
  31.         lt.testLoginPage();
  32.         Pesel("61121211799");
  33.     }
  34. }
  35.