diff options
-rw-r--r-- | src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java index 0915450..28fed98 100644 --- a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java +++ b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java @@ -52,7 +52,7 @@ public class OperationsControllerTest { continue; } - rowElements.get(2).click(); + rowElements.get(2).findElement(By.tagName("a")).click(); driver.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS); break; } @@ -71,8 +71,9 @@ public class OperationsControllerTest { } assertEquals("10", rowElements.get(2).getText()); - rowElements.get(2).click(); + rowElements.get(2).findElement(By.tagName("a")).click(); driver.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS); + driver.findElement(By.id("productAmount")).clear(); driver.findElement(By.id("productAmount")).sendKeys("0"); driver.findElement(By.id("saveBtn")).click(); driver.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS); |