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
Copy file name to clipboardExpand all lines: src/main/java/util/validator/ResponsiveUIValidator.java
+29-8Lines changed: 29 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
importorg.openqa.selenium.Point;
13
13
importutil.driver.PageValidator;
14
14
importutil.general.HtmlReportBuilder;
15
+
importutil.validator.properties.Padding;
15
16
16
17
importjavax.imageio.ImageIO;
17
18
importjava.awt.*;
@@ -22,7 +23,6 @@
22
23
importjava.util.Arrays;
23
24
importjava.util.List;
24
25
importjava.util.Map;
25
-
importjava.util.concurrent.ConcurrentHashMap;
26
26
importjava.util.concurrent.ConcurrentSkipListMap;
27
27
importjava.util.concurrent.atomic.AtomicLong;
28
28
@@ -335,7 +335,7 @@ void validateGridAlignment(int columns, int rows) {
335
335
if (rowCount <= mapSize) {
336
336
intactualInARow = entry.getValue().intValue();
337
337
if (actualInARow != columns) {
338
-
errorLastLine++;
338
+
errorLastLine++;
339
339
if (errorLastLine > 1) {
340
340
putJsonDetailsWithoutElement(String.format("Elements in a grid are not aligned properly in row #%d. Expected %d elements in a row. Actually it's %d", rowCount, columns, actualInARow));
341
341
}
@@ -580,7 +580,7 @@ void validateNotSameSize(List<WebElement> elements, int type) {
if (marginBetweenRoot < minMargin || marginBetweenRoot > maxMargin) {
586
586
putJsonDetailsWithElement(String.format("Below element aligned not properly. Expected margin should be between %spx and %spx. Actual margin is %spx", minMargin, maxMargin, marginBetweenRoot), element);
if (marginBetweenRoot < minMargin || marginBetweenRoot > maxMargin) {
605
605
putJsonDetailsWithElement(String.format("Above element aligned not properly. Expected margin should be between %spx and %spx. Actual margin is %spx", minMargin, maxMargin, marginBetweenRoot), element);
if (marginBetweenRoot < minMargin || marginBetweenRoot > maxMargin) {
623
623
putJsonDetailsWithElement(String.format("Right element aligned not properly. Expected margin should be between %spx and %spx. Actual margin is %spx", minMargin, maxMargin, marginBetweenRoot), element);
if (marginBetweenRoot < minMargin || marginBetweenRoot > maxMargin) {
642
642
putJsonDetailsWithElement(String.format("Left element aligned not properly. Expected margin should be between %spx and %spx. Actual margin is %spx", minMargin, maxMargin, marginBetweenRoot), leftElement);
putJsonDetailsWithElement(String.format("Padding of element '%s' is incorrect. Expected padding: top[%d], right[%d], bottom[%d], left[%d]. Actual padding: top[%d], right[%d], bottom[%d], left[%d]",
0 commit comments