Package org.openqa.selenium.devtools
Class CdpVersionFinder
- java.lang.Object
-
- org.openqa.selenium.devtools.CdpVersionFinder
-
public class CdpVersionFinder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CdpVersionFinder()
CdpVersionFinder(int versionFudgeFactor, java.util.Collection<CdpInfo> infos)
-
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 aCapabilities
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.
-
-
-
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 aCapabilities
instance and returns the matching CDP version.
-
-