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

Method asList

java/src/org/openqa/selenium/bidi/module/Browser.java:56–61  ·  view source on GitHub ↗
(@Nullable Object result, String key)

Source from the content-addressed store, hash-verified

54 };
55
56 @SuppressWarnings("unchecked")
57 private static <T> List<T> asList(@Nullable Object result, String key) {
58 return (List<T>)
59 Require.nonNull(
60 "Field " + key, ((Map<?, ?>) Require.nonNull("Command result", result)).get(key));
61 }
62
63 public Browser(WebDriver driver) {
64 this.bidi = ((HasBiDi) driver).getBiDi();

Callers 7

BrowserClass · 0.95
canUseFluentSetterMethod · 0.45
expectedMethod · 0.45
expectedMethod · 0.45
BiDiGeneratorClass · 0.45
isAttachedMethod · 0.45

Calls 2

nonNullMethod · 0.95
getMethod · 0.65

Tested by 4

canUseFluentSetterMethod · 0.36
expectedMethod · 0.36
expectedMethod · 0.36