All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nordstrom.automation.selenium.examples.IOSPage Maven / Gradle / Ivy

Go to download

Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).

There is a newer version: 28.3.1-s4
Show newest version
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();
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy