예제 #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);
 }