Пример #1
0
 public ProductDetails OpenProduct(String nameProduct) {
   super.driver.findElement(By.xpath("//a[contains(.,'" + nameProduct + "')]")).click();
   return new ProductDetails(this.driver);
 }
Пример #2
0
 public ProductForm clickNewBtn() {
   super.wait.until(ExpectedConditions.visibilityOf(newBtn));
   newBtn.click();
   return new ProductForm(this.driver);
 }