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

com.epam.jdi.uitests.gui.sikuli.elements.common.TextField Maven / Gradle / Ivy

Go to download

Epam UI Automation framework package for GUI (Desktop, Mobile, Web) - image based

There is a newer version: 1.1.33
Show newest version
package com.epam.jdi.uitests.gui.sikuli.elements.common;

import com.epam.commons.TryCatchUtil;
import com.epam.jdi.uitests.core.interfaces.common.ITextField;
/**
 * Created by Natalia_Grebenshchikova on 1/19/2016.
 */
public class TextField extends Text implements ITextField {

    /**
     * @param text Specify text to input to TextField
     *             Input text in textfield
     */
    public final void input(CharSequence text) {
        actions.input(text, this::inputAction);
    }

    protected void inputAction(CharSequence text) {
        TryCatchUtil.tryGetResult(() -> this.getParentRegion().type(this.getPattern(), text.toString()));
    }

    /**
     * @param text Specify text to input to TextField
     *             Clear and input text in textfield
     */
    public void newInput(CharSequence text) {

    }

    /**
     * Clear textfield
     */
    public void clear() {

    }

    /**
     * Focus(click) on textfield
     */
    public void focus() {

    }

    /**
     * @param value Specify element value
     *              Set value to Element
     */
    public void setValue(String value) {

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy