Class DefaultSlotMatcher

  • All Implemented Interfaces:
    SlotMatcher

    public class DefaultSlotMatcher
    extends java.lang.Object
    implements SlotMatcher
    Default matching implementation for slots, loosely based on the requirements for capability matching from the WebDriver spec. A match is made if the following are all true:
    • All non-extension capabilities from the stereotype match those in the Capabilities being considered.
    • If the Capabilities being considered contain any of:
      • browserName
      • browserVersion
      • platform
      Then the stereotype must contain the same values.

    One thing to note is that extension capabilities are not considered when matching slots, since the matching of these is implementation-specific to each driver.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(org.openqa.selenium.Capabilities stereotype, org.openqa.selenium.Capabilities capabilities)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSlotMatcher

        public DefaultSlotMatcher()
    • Method Detail

      • matches

        public boolean matches​(org.openqa.selenium.Capabilities stereotype,
                               org.openqa.selenium.Capabilities capabilities)
        Specified by:
        matches in interface SlotMatcher