
demo.SearchComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of conditions Show documentation
Show all versions of conditions Show documentation
ExpectedCondition annotation for WebElements and Controls
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