Class CdpVersionFinder


  • public class CdpVersionFinder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<CdpInfo> match​(java.lang.String browserVersion)
      Takes a `browserVersion` from a Capabilities instance and returns the matching CDP version.
      java.util.Optional<CdpInfo> match​(java.util.Map<java.lang.String,​java.lang.Object> versionJson)
      Take the output of `/json/version` from a CDP-enabled tool and uses that information to find a match.
      • Methods inherited from class java.lang.Object

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

      • CdpVersionFinder

        public CdpVersionFinder()
      • CdpVersionFinder

        public CdpVersionFinder​(int versionFudgeFactor,
                                java.util.Collection<CdpInfo> infos)
    • Method Detail

      • match

        public java.util.Optional<CdpInfo> match​(java.util.Map<java.lang.String,​java.lang.Object> versionJson)
        Take the output of `/json/version` from a CDP-enabled tool and uses that information to find a match.
      • match

        public java.util.Optional<CdpInfo> match​(java.lang.String browserVersion)
        Takes a `browserVersion` from a Capabilities instance and returns the matching CDP version.