You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* #70 updated ConditionalWait methods signature.
Added waitFor method which return true or false
* #70 changed browser version to latest
* #70 added documentation, increased version, fixed test names
* #70 excluded sonar coverage check from pipeline
* #70 fixed dynamic controls from and related tests
* #70 updated version in readme
At the moment Aquality Selenium allows to automate web tests for Chrome, Firefox, Safari, IExplorer and Edge. Also you can implement support of new browsers that Selenium supports
@@ -346,3 +347,10 @@ For example, if user wants to keep URL to web site that is automating he can put
346
347
JsonFile environment = new JsonFile("settings.json")
If you need to wait for any condition to be met, you can use the [ConditionalWait](./src/main/java/aquality/selenium/waitings/ConditionalWait.java) class provided by Aquality Selenium.
353
+
All class methods wait for the condition to be met, but return values and handle exceptions differently:
354
+
1.```waitForTrue``` - throws an exception if the condition is not met, returns nothing.
355
+
2.```boolean waitFor``` - returns true if the condition is fulfilled or false otherwise. Method does not throw any exception.
356
+
3.```<T> T waitFor``` - uses the WebDriver's wait, returns a T object or an exception if the condition is not met.
В настоящее время Aquality Selenium позволяет автоматизировать веб тесты для Chrome, Firefox, Safari, IExplorer, Edge. Также присутствуют возможности самостоятельно реализовать поддержку новых браузеров, которые поддерживаются Selenium (подробнее [здесь](https://www.seleniumhq.org/about/platforms.jsp)).
@@ -318,3 +319,11 @@ Aquality Selenium использует для своей работы и пре
318
319
JsonFile environment = new JsonFile("settings.json")
В случае необходимости ожидания выполнения какого-либо условия можно воспользоваться предоставляемым в Aquality Selenium классом [ConditionalWait](./src/main/java/aquality/selenium/waitings/ConditionalWait.java).
326
+
Все методы класса ждут выполнения условия, но по разному возвращают значения и обрабатывают ошибки:
327
+
1. waitForTrue - выкидывает ошибку в случае, если условие не выполнилось, ничего не возвращает.
328
+
2. boolean waitFor - возвращает true если условие выполнилось или false если не выполнилось, ошибок не выбрасывает.
329
+
3. <T> T waitFor - использует ожидание WebDriver'a, возвращает объект T или ошибку, в случае если условие не выполнилось.
0 commit comments