Class CdpVersionFinder

java.lang.Object
org.openqa.selenium.devtools.CdpVersionFinder

public class CdpVersionFinder extends Object
  • Constructor Details

    • CdpVersionFinder

      public CdpVersionFinder()
    • CdpVersionFinder

      public CdpVersionFinder(int versionFudgeFactor, Collection<CdpInfo> infos)
  • Method Details

    • match

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

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