diff --git a/pom.xml b/pom.xml index 93200e3..0515d84 100644 --- a/pom.xml +++ b/pom.xml @@ -109,7 +109,7 @@ com.google.guava guava - 33.4.8-jre + 33.5.0-jre com.fasterxml.jackson.core @@ -119,7 +119,7 @@ org.seleniumhq.selenium selenium-java - 4.35.0 + 4.36.0 io.appium diff --git a/src/main/java/aquality/selenium/core/elements/interfaces/IElementFactory.java b/src/main/java/aquality/selenium/core/elements/interfaces/IElementFactory.java index 1ab32d8..6ef99a9 100644 --- a/src/main/java/aquality/selenium/core/elements/interfaces/IElementFactory.java +++ b/src/main/java/aquality/selenium/core/elements/interfaces/IElementFactory.java @@ -183,6 +183,7 @@ default T findChildElement(IElement parentElement, By child * @param parentElement Parent element for relative search of child elements. * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -196,7 +197,8 @@ default List findChildElements(IElement parentElement, B * @param parentElement Parent element for relative search of child elements. * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -211,6 +213,7 @@ default List findChildElements(IElement parentElement, B * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -225,8 +228,9 @@ default List findChildElements(IElement parentElement, B * @param parentElement Parent element for relative search of child elements. * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -242,6 +246,7 @@ default List findChildElements(IElement parentElement, B * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, String name, @@ -256,7 +261,8 @@ default List findChildElements(IElement parentElement, B * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, String name, @@ -272,6 +278,7 @@ default List findChildElements(IElement parentElement, B * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, String name, @@ -286,7 +293,7 @@ default List findChildElements(IElement parentElement, B * @param clazz Class or interface of the elements to be obtained. * @param name Child elements name. * @param parentElement Parent element for relative search of child elements. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @param state Visibility state of target elements. * @param Type of the target elements. * @return List of child elements. @@ -300,6 +307,7 @@ List findChildElements(IElement parentElement, By childL * @param parentElement Parent element for relative search of child elements. * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -313,7 +321,8 @@ default List findChildElements(IElement parentElement, B * @param parentElement Parent element for relative search of child elements. * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -328,6 +337,7 @@ default List findChildElements(IElement parentElement, B * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -342,8 +352,9 @@ default List findChildElements(IElement parentElement, B * @param parentElement Parent element for relative search of child elements. * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, @@ -359,6 +370,7 @@ default List findChildElements(IElement parentElement, B * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param supplier Required elements' supplier. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, String name, @@ -373,7 +385,8 @@ default List findChildElements(IElement parentElement, B * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, String name, @@ -389,6 +402,7 @@ default List findChildElements(IElement parentElement, B * @param name Child elements name. * @param supplier Required elements' supplier. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(IElement parentElement, By childLoc, String name, @@ -405,6 +419,7 @@ default List findChildElements(IElement parentElement, B * @param parentElement Parent element for relative search of child elements. * @param state Visibility state of child elements. * @param Type of the target elements. + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @return List of child elements. */ List findChildElements(IElement parentElement, By childLoc, String name, @@ -416,9 +431,9 @@ List findChildElements(IElement parentElement, By childL * @param locator Elements selector. * @param name Child element name. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @param state Visibility state of target elements. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ List findElements(By locator, String name, IElementSupplier supplier, ElementsCount count, @@ -431,7 +446,7 @@ List findElements(By locator, String name, IElementSuppl * @param name Child element name. * @param supplier Required elements' supplier. * @param state Visibility state of target elements. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, String name, IElementSupplier supplier, @@ -445,7 +460,7 @@ default List findElements(By locator, String name, IElem * @param locator Elements selector. * @param supplier Required elements' supplier. * @param state Visibility state of target elements. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, IElementSupplier supplier, @@ -459,8 +474,8 @@ default List findElements(By locator, IElementSupplier Type of the target element. + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, String name, IElementSupplier supplier, ElementsCount count) { @@ -473,7 +488,7 @@ default List findElements(By locator, String name, IElem * @param locator Elements selector. * @param name Child element name. * @param supplier Required elements' supplier. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, String name, IElementSupplier supplier) { @@ -485,9 +500,9 @@ default List findElements(By locator, String name, IElem * * @param locator Elements selector. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @param state Visibility state of target elements. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, IElementSupplier supplier, ElementsCount count, @@ -501,9 +516,9 @@ default List findElements(By locator, IElementSupplier Type of the target element. + * @param Type of the target elements. * @return List of elements. */ List findElements(By locator, String name, Class clazz, ElementsCount count, ElementState state); @@ -515,7 +530,7 @@ default List findElements(By locator, IElementSupplier Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, String name, Class clazz, ElementState state) { @@ -527,9 +542,9 @@ default List findElements(By locator, String name, Class * * @param locator Elements selector. * @param clazz Class or interface of the element to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @param state Visibility state of target elements. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, Class clazz, ElementsCount count, ElementState state) { @@ -542,7 +557,7 @@ default List findElements(By locator, Class clazz, El * @param locator Elements selector. * @param clazz Class or interface of the element to be obtained. * @param state Visibility state of target elements. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, Class clazz, ElementState state) { @@ -554,7 +569,7 @@ default List findElements(By locator, Class clazz, El * * @param locator Elements selector. * @param clazz Class or interface of elements to be obtained. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, Class clazz) { @@ -567,8 +582,8 @@ default List findElements(By locator, Class clazz) { * @param locator Elements selector. * @param clazz Class or interface of elements to be obtained. * @param name Child element name. - * @param count Expected number of elements that have to be found (zero, more then zero, any). - * @param Type of the target element. + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, String name, Class clazz, ElementsCount count) { @@ -581,7 +596,7 @@ default List findElements(By locator, String name, Class * @param locator Elements selector. * @param name Child element name. * @param clazz Class or interface of elements to be obtained. - * @param Type of the target element. + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, String name, Class clazz) { @@ -593,8 +608,8 @@ default List findElements(By locator, String name, Class * * @param locator Elements selector. * @param clazz Class or interface of elements to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). - * @param Type of the target element. + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of elements. */ default List findElements(By locator, Class clazz, ElementsCount count) { diff --git a/src/main/java/aquality/selenium/core/elements/interfaces/IParent.java b/src/main/java/aquality/selenium/core/elements/interfaces/IParent.java index 5203f9f..f3d263f 100644 --- a/src/main/java/aquality/selenium/core/elements/interfaces/IParent.java +++ b/src/main/java/aquality/selenium/core/elements/interfaces/IParent.java @@ -113,6 +113,7 @@ default T findChildElement(By childLoc, IElementSupplier * * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, Class clazz) { @@ -124,7 +125,8 @@ default List findChildElements(By childLoc, Class cla * * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, Class clazz, ElementsCount count) { @@ -137,6 +139,7 @@ default List findChildElements(By childLoc, Class cla * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, Class clazz, ElementState state) { @@ -149,7 +152,8 @@ default List findChildElements(By childLoc, Class cla * @param childLoc Locator of child elements relative to its parent. * @param clazz Class or interface of the elements to be obtained. * @param state Visibility state of child elements. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, Class clazz, ElementState state, @@ -163,6 +167,7 @@ default List findChildElements(By childLoc, Class cla * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, String name, Class clazz) { @@ -175,7 +180,8 @@ default List findChildElements(By childLoc, String name, * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, String name, Class clazz, ElementsCount count) { @@ -189,6 +195,7 @@ default List findChildElements(By childLoc, String name, * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, String name, Class clazz, ElementState state) { @@ -203,7 +210,7 @@ default List findChildElements(By childLoc, String name, * @param name Child elements name. * @param clazz Class or interface of the elements to be obtained. * @param state Visibility state of target elements. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @return List of child elements. */ List findChildElements(By childLoc, String name, Class clazz, ElementState state, @@ -214,6 +221,7 @@ List findChildElements(By childLoc, String name, Class Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, IElementSupplier supplier) { @@ -225,7 +233,8 @@ default List findChildElements(By childLoc, IElementSupp * * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, IElementSupplier supplier, @@ -239,6 +248,7 @@ default List findChildElements(By childLoc, IElementSupp * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, IElementSupplier supplier, @@ -252,7 +262,8 @@ default List findChildElements(By childLoc, IElementSupp * @param childLoc Locator of child elements relative to its parent. * @param supplier Required elements' supplier. * @param state Visibility state of child elements. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, IElementSupplier supplier, ElementState state, @@ -266,6 +277,7 @@ default List findChildElements(By childLoc, IElementSupp * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param supplier Required elements' supplier. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, String name, IElementSupplier supplier) { @@ -278,7 +290,8 @@ default List findChildElements(By childLoc, String name, * @param childLoc Locator of child elements relative to its parent. * @param name Child elements name. * @param supplier Required elements' supplier. - * @param count Expected number of elements that have to be found (zero, more then zero, any). + * @param count Expected number of elements that have to be found (zero, more than zero, any). + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, String name, IElementSupplier supplier, @@ -293,6 +306,7 @@ default List findChildElements(By childLoc, String name, * @param name Child elements name. * @param supplier Required elements' supplier. * @param state Visibility state of child elements. + * @param Type of the target elements. * @return List of child elements. */ default List findChildElements(By childLoc, String name, IElementSupplier supplier, @@ -308,6 +322,7 @@ default List findChildElements(By childLoc, String name, * @param name Child elements name. * @param supplier Required elements' supplier. * @param state Visibility state of child elements. + * @param count Expected number of elements that have to be found (zero, more than zero, any). * @return List of child elements. */ List findChildElements(By childLoc, String name, IElementSupplier supplier, diff --git a/src/main/java/aquality/selenium/core/visualization/ImageFunctions.java b/src/main/java/aquality/selenium/core/visualization/ImageFunctions.java index c4a46c5..4d0d825 100644 --- a/src/main/java/aquality/selenium/core/visualization/ImageFunctions.java +++ b/src/main/java/aquality/selenium/core/visualization/ImageFunctions.java @@ -121,6 +121,7 @@ public static BufferedImage resize(Image image, int width, int height) { * @param image source image. * @param file target file. * @param format target format. + * @throws IOException if an error occurs during file creation or writing. */ public static void save(Image image, File file, String format) throws IOException { if (file.exists() || file.createNewFile()) {