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

com.nordstrom.automation.selenium.examples.WindowsPage 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 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();
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy