com.nordstrom.automation.selenium.examples.IOSPage 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 IOSPage extends Page {
public IOSPage(WebDriver driver) {
super(driver);
}
protected enum Using implements ByEnum {
TEXT_FIELD(By.className("XCUIElementTypeTextField"));
private final By locator;
Using(By locator) {
this.locator = locator;
}
@Override
public By locator() {
return locator;
}
}
public void modifyField(String keys) {
findElement(Using.TEXT_FIELD).click();
findElement(Using.TEXT_FIELD).sendKeys(keys);
}
public String accessField() {
return findElement(Using.TEXT_FIELD).getText();
}
}