Class CdpVersionFinder
java.lang.Object
org.openqa.selenium.devtools.CdpVersionFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindMatchingVersion(String browserVersion) Takes a `browserVersion` from aCapabilitiesinstance and returns the matching CDP version.Takes a `browserVersion` from aCapabilitiesinstance and returns the matching CDP version.Take the output of `/json/version` from a CDP-enabled tool and uses that information to find a match.
-
Constructor Details
-
CdpVersionFinder
public CdpVersionFinder() -
CdpVersionFinder
-
-
Method Details
-
match
-
findMatchingVersion
Takes a `browserVersion` from aCapabilitiesinstance and returns the matching CDP version.- Parameters:
browserVersion- A version of browser that we need to find the closest CDP version for- Returns:
- closest available CDP version for given browser version - or
NoOpCdpInfoif none was found
-
match
Takes a `browserVersion` from aCapabilitiesinstance and returns the matching CDP version.- Parameters:
browserVersion- A version of browser that we need to find a closest CDP version for- Returns:
- closest available CDP version for given browser version - or
Optional.empty()if none was found
-