MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / isCurrentPlatform

Method isCurrentPlatform

java/src/org/openqa/selenium/Platform.java:541–543  ·  view source on GitHub ↗
(String osName, String matchAgainst)

Source from the content-addressed store, hash-verified

539 public abstract @Nullable Platform family();
540
541 private boolean isCurrentPlatform(String osName, String matchAgainst) {
542 return osName.contains(matchAgainst);
543 }
544
545 private boolean isExactMatch(String osName, String matchAgainst) {
546 return matchAgainst.equals(osName);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected