Class LocatorAssertions.IsInViewportOptions

    • Field Detail

      • ratio

        public Double ratio
        The minimal ratio of the element to intersect viewport. If equals to 0, then element should intersect viewport at any positive ratio. Defaults to 0.
      • timeout

        public Double timeout
        Time to retry the assertion for in milliseconds. Defaults to 5000.
    • Constructor Detail

      • IsInViewportOptions

        public IsInViewportOptions()
    • Method Detail

      • setRatio

        public LocatorAssertions.IsInViewportOptions setRatio​(double ratio)
        The minimal ratio of the element to intersect viewport. If equals to 0, then element should intersect viewport at any positive ratio. Defaults to 0.