blob: 1ddba40c47af5e8eeb1c18fc785fbcda44e75775 [file] [log] [blame] [edit]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Enum WebDriverResult </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Enum WebDriverResult ">
<meta name="description" content="Specifies return values for actions in the driver.">
<link rel="icon" href="../images/favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="toc.html">
<meta name="docfx:rel" content="../">
<meta name="docfx:docurl" content="https://github.com/SeleniumHQ/selenium/new/trunk/apiSpec/new?filename=OpenQA_Selenium_WebDriverResult.md&amp;value=---%0Auid%3A%20OpenQA.Selenium.WebDriverResult%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../images/logo.svg" alt="Selenium .NET API">
Selenium .NET API
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="OpenQA.Selenium.WebDriverResult">
<h1 id="OpenQA_Selenium_WebDriverResult" data-uid="OpenQA.Selenium.WebDriverResult" class="text-break">
Enum WebDriverResult <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/WebDriverResult.cs/#L25"><i class="bi bi-code-slash"></i></a>
</h1>
<div class="facts text-secondary">
<dl><dt>Namespace</dt><dd><a class="xref" href="OpenQA.html">OpenQA</a>.<a class="xref" href="OpenQA.Selenium.html">Selenium</a></dd></dl>
<dl><dt>Assembly</dt><dd>WebDriver.dll</dd></dl>
</div>
<div class="markdown summary"><p>Specifies return values for actions in the driver.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public enum WebDriverResult</code></pre>
</div>
<h2 id="fields">Fields
</h2>
<dl class="parameters">
<dt id="OpenQA_Selenium_WebDriverResult_AsyncScriptTimeout"><code>AsyncScriptTimeout = 28</code></dt>
<dd><p>A script did not complete before its timeout expired.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_DetachedShadowRoot"><code>DetachedShadowRoot = 66</code></dt>
<dd><p>The referenced shadow root is no longer attached to the DOM.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_ElementClickIntercepted"><code>ElementClickIntercepted = 64</code></dt>
<dd><p>The <a href="https://www.w3.org/TR/webdriver2/#dfn-element-click">Element Click</a> command could not be completed because the element receiving the events is <a href="https://www.w3.org/TR/webdriver2/#dfn-obscuring">obscuring</a> the element that was requested clicked.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_ElementNotInteractable"><code>ElementNotInteractable = 60</code></dt>
<dd><p>A command could not be completed because the element is not <a href="https://www.w3.org/TR/webdriver2/#dfn-pointer-interactable">pointer</a>- or <a href="https://www.w3.org/TR/webdriver2/#dfn-keyboard-interactable">keyboard</a> interactable.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_InsecureCertificate"><code>InsecureCertificate = 59</code></dt>
<dd><p>Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_InvalidArgument"><code>InvalidArgument = 61</code></dt>
<dd><p>The arguments passed to a command are either invalid or malformed.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_InvalidCookieDomain"><code>InvalidCookieDomain = 24</code></dt>
<dd><p>An illegal attempt was made to set a cookie under a different domain than the current page.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_InvalidElementState"><code>InvalidElementState = 12</code></dt>
<dd><p>A command could not be completed because the element is in an invalid state, e.g. attempting to <a href="https://www.w3.org/TR/webdriver2/#dfn-element-clear">clear</a> an element that isn't both <a href="https://www.w3.org/TR/webdriver2/#dfn-editable">editable</a> and <a href="https://www.w3.org/TR/webdriver2/#dfn-resettable-elements">resettable</a>.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_InvalidSelector"><code>InvalidSelector = 32</code></dt>
<dd><p>Argument was an invalid selector.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_MoveTargetOutOfBounds"><code>MoveTargetOutOfBounds = 34</code></dt>
<dd><p>The target for mouse interaction is not in the browser's viewport and cannot be brought into that viewport.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoAlertPresent"><code>NoAlertPresent = 27</code></dt>
<dd><p>An attempt was made to operate on a modal dialog when one was not open.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoSuchCookie"><code>NoSuchCookie = 62</code></dt>
<dd><p>No cookie matching the given path name was found amongst the <a href="https://www.w3.org/TR/webdriver2/#dfn-associated-cookies">associated cookies</a> of session's current browsing context's active document.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoSuchDriver"><code>NoSuchDriver = 6</code></dt>
<dd><p>Occurs if the given <a href="https://www.w3.org/TR/webdriver2/#dfn-session-id">session id</a> is not in the list of <a href="https://www.w3.org/TR/webdriver2/#dfn-active-sessions">active sessions</a>, meaning the session either does not exist or that it's not active.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoSuchElement"><code>NoSuchElement = 7</code></dt>
<dd><p>An element could not be located on the page using the given search parameters.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoSuchFrame"><code>NoSuchFrame = 8</code></dt>
<dd><p>A command to switch to a frame could not be satisfied because the frame could not be found.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoSuchShadowRoot"><code>NoSuchShadowRoot = 65</code></dt>
<dd><p>The element does not have a shadow root.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_NoSuchWindow"><code>NoSuchWindow = 23</code></dt>
<dd><p>A command to switch to a window could not be satisfied because the window could not be found.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_ObsoleteElement"><code>ObsoleteElement = 10</code></dt>
<dd><p>A command failed because the referenced element is no longer attached to the DOM.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_SessionNotCreated"><code>SessionNotCreated = 33</code></dt>
<dd><p>A new <a href="https://www.w3.org/TR/webdriver2/#dfn-sessions">session</a> could not be created.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_Success"><code>Success = 0</code></dt>
<dd><p>The action was successful.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_Timeout"><code>Timeout = 21</code></dt>
<dd><p>An operation did not complete before its timeout expired.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnableToCaptureScreen"><code>UnableToCaptureScreen = 63</code></dt>
<dd><p>A screen capture was made impossible.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnableToSetCookie"><code>UnableToSetCookie = 25</code></dt>
<dd><p>A command to set a cookie's value could not be satisfied.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnexpectedAlertOpen"><code>UnexpectedAlertOpen = 26</code></dt>
<dd><p>A modal dialog was open, blocking this operation.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnexpectedJavaScriptError"><code>UnexpectedJavaScriptError = 17</code></dt>
<dd><p>An error occurred while executing JavaScript supplied by the user.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnknownCommand"><code>UnknownCommand = 9</code></dt>
<dd><p>A command could not be executed because the <a href="https://www.w3.org/TR/webdriver2/#dfn-remote-ends">remote end</a> is not aware of it.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnknownError"><code>UnknownError = 13</code></dt>
<dd><p>An unknown error occurred in the <a href="https://www.w3.org/TR/webdriver2/#dfn-remote-ends">remote end</a> while processing the command.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnknownMethod"><code>UnknownMethod = 67</code></dt>
<dd><p>The requested command matched a known URL but did not match any method for that URL.</p>
</dd>
<dt id="OpenQA_Selenium_WebDriverResult_UnsupportedOperation"><code>UnsupportedOperation = 68</code></dt>
<dd><p>Indicates that a command that should have executed properly cannot be supported for some reason.</p>
</dd>
</dl>
</article>
<div class="contribution d-print-none">
<a href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/WebDriverResult.cs/#L25" class="edit-link">Edit this page</a>
</div>
</div>
<div class="affix">
<nav id="affix"></nav>
</div>
</main>
<div class="container-xxl search-results" id="search-results"></div>
<footer class="border-top text-secondary">
<div class="container-xxl">
<div class="flex-fill">
<span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
</div>
</div>
</footer>
</body>
</html>