| public class SummaryScreenParts { | |
| private WebElement nameAndSurnameIns; | |
| String valueOfNameAndSurnameIns; | |
| private WebDriver driver; | |
| private By nameAndSurnameInsXpath = By.xpath("---xpath---"); | |
| public SummaryScreenParts(WebDriver driver){ | |
| this.driver = driver; | |
| nameAndSurnameIns = (new WebDriverWait(driver, 10)).until(ExpectedConditions.visibilityOfElementLocated(nameAndSurnameInsXpath)); | |
| this.valueOfNameAndSurnameIns=nameAndSurnameIns.getAttribute("value"); | |
| } | |
| public String getValueForNameField(){ | |
| String value= nameAndSurnameIns.getAttribute("value"); | |
| return value; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment