
demo.SearchComponent Maven / Gradle / Ivy
package demo;
import com.github.metalloid.pagefactory.FindBy;
import com.github.metalloid.pagefactory.components.Component;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
@FindBy(css = "div[jscontroller='mvYTse']")
public class SearchComponent extends Component {
@FindBy(name = "q")
public TextField input;
public SearchComponent(WebDriver driver, By by) {
super(driver, by);
}
public void setText(String string) {
input.setText(string);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy