com.nordstrom.automation.selenium.examples.WindowsPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-foundation Show documentation
Show all versions of selenium-foundation Show documentation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
package com.nordstrom.automation.selenium.examples;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.nordstrom.automation.selenium.model.Page;
public class WindowsPage extends Page {
public WindowsPage(WebDriver driver) {
super(driver);
}
protected enum Using implements ByEnum {
EDIT_FIELD(By.className("Edit"));
private final By locator;
Using(By locator) {
this.locator = locator;
}
@Override
public By locator() {
return locator;
}
}
public void modifyDocument(String keys) {
findElement(Using.EDIT_FIELD).sendKeys(keys);
}
public String getDocument() {
return findElement(Using.EDIT_FIELD).getText();
}
}