nl.hsac.fitnesse.fixture.util.selenium.by.InputBy Maven / Gradle / Ivy
package nl.hsac.fitnesse.fixture.util.selenium.by;
import org.openqa.selenium.By;
/**
* Finds inputs.
*/
public class InputBy {
/**
* @param value value to look for
* @return non-hidden input containing value.
*/
public static By exactValue(String value) {
return new CssBy("input[value='%s']:not([type='hidden'])", value);
}
/**
* @param value value to look for
* @return non-hidden input containing value.
*/
public static By partialValue(String value) {
return new CssBy("input[value*='%s']:not([type='hidden'])", value);
}
/**
* @param value value to look for
* @return non-hidden input containing value.
*/
public static By partialNormalizedValue(String value) {
return new XPathBy(".//input[not(@type='hidden') and contains(normalized(@value),'%s')]", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy