(ISearchContext context)
| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected