package com.deviniti.ufe.nss.test.view360.Tests; import com.deviniti.ufe.nss.test.view360.Pages.LoginPage; import com.deviniti.ufe.nss.test.view360.Pages.MainPage; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.BeforeTest; public class IdentificationWorkWithClient { public WebDriver driver; LogInTest lt; LoginPage lp; private By pesel = By.xpath("//input[@placeholder='Wpisz PESEL']"); public IdentificationWorkWithClient() { this.driver = driver; } public void Pesel(String strPesel) { driver.findElement(pesel).sendKeys(strPesel); this.Pesel(strPesel); } @Test public void Identification() { lp = new LoginPage(driver); lt.setup(); lt.testLoginPage(); Pesel("61121211799"); } }