public class page {
private By input = By.cssSelector("input");
public void setInput(String text) { driver.findElement(input).click(); driver.findElement(input).sendKeys(text); }
}
page p = new page(driver);
p.setInput("asdf");
driver.findElement(input).click();
driver.findElement(input).sendKeys(text);
متشکرم بسیارمفیدواقع شد
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/49af3079-6a8a-492a-914e-9b506eeea03c%40googlegroups.com.