Class UrlCondition

  • All Implemented Interfaces:
    Condition

    @Immutable
    public class UrlCondition
    extends Object
    implements Condition
    Conditions that returns true iff the browser's current url contains url. Note: Case insensitive
    Author:
    dannyroest@gmail.com (Danny Roest)
    • Field Detail

      • url

        private final String url
    • Constructor Detail

      • UrlCondition

        public UrlCondition​(String url)
        Parameters:
        url - the URL.
    • Method Detail

      • check

        public boolean check​(EmbeddedBrowser browser)
        Specified by:
        check in interface Condition
        Parameters:
        browser - The browser.
        Returns:
        whether the evaluated condition is satisfied
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object