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

io.appium.java_client.android.CanReplaceElementValue Maven / Gradle / Ivy

There is a newer version: 9.3.0
Show newest version
package io.appium.java_client.android;

import com.google.common.collect.ImmutableMap;
import io.appium.java_client.ExecutesMethod;
import io.appium.java_client.MobileCommand;
import org.openqa.selenium.remote.RemoteWebElement;

public interface CanReplaceElementValue extends ExecutesMethod {
    /**
     * Replaces element value with the given one.
     *
     * @param element The destination element.
     * @param value The value to set.
     */
    default void replaceElementValue(RemoteWebElement element, String value) {
        this.execute(MobileCommand.REPLACE_VALUE, ImmutableMap.of(
                "id", element.getId(),
                "value", value
        ));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy