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

Method GetSearchRoot

dotnet/src/webdriver/RelativeBy.cs:388–398  ·  view source on GitHub ↗
(ISearchContext context)

Source from the content-addressed store, hash-verified

386 }
387
388 private static object? GetSearchRoot(ISearchContext context)
389 {
390 // The atom searches from the document when its root is null. A context that cannot be sent
391 // to the browser as a script argument keeps that document-wide behavior.
392 if (context is IWebDriver)
393 {
394 return null;
395 }
396
397 return context is IWebDriverObjectReference || context is IWrapsElement ? context : null;
398 }
399
400 private static IJavaScriptExecutor GetExecutor(ISearchContext context)
401 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected