Skip to content

1.4.0 - Responsive UI Validator

Compare
Choose a tag to compare
@dzaiats dzaiats released this 29 Nov 20:23
· 778 commits to master since this release

Responsive UI Validator

  • Responsive UI Validator allows to validate UI on web or mobile page using lots of criterias. Also it allows tu build thr HTMl report after validation.

        ResponsiveUIValidator uiValidator = new    ResponsiveUIValidator(driver);
    
    
        boolean result = uiValidator.init()
               .findElement({rootEelement}, "Name of element")
               .sameOffsetLeftAs({element} "Panel 1")
               .sameOffsetLeftAs({element} "Button 1")
               .sameOffsetRightAs({element} "Button 2")
               .sameOffsetRightAs({element}, "Button 3)
               .withCssValue("border", "2px", "solid", "#FBDCDC")
               .withCssValue("border-radius", "4px")
               .withoutCssValue("color", "#FFFFFF")
               .sameSizeAs({list_elements},)
               .insideOf({element}, "Container")
               .notOverlapWith({element}, "Other element")
               .withTopElement({element}, 10, 15)
               .changeMetricsUnitsTo(ResponsiveUIValidator.Units.PERCENT)
               .widthBetween(50, 55)
               .heightBetween(90, 95)
               .drawMap()
               .validate();
    
    
        uiValidator.generateReport();