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

Method FindElement

dotnet/src/webdriver/WebDriver.cs:286–294  ·  view source on GitHub ↗

Finds the first element in the page that matches the object By mechanism to find the object IWebElement object so that you can interact with that object If is . IWebDriver driver = new InternetExplorerDri

(By by)

Source from the content-addressed store, hash-verified

284 /// </code>
285 /// </example>
286 public IWebElement FindElement(By by)
287 {
288 if (by == null)
289 {
290 throw new ArgumentNullException(nameof(@by), "by cannot be null");
291 }
292
293 return by.FindElement(this);
294 }
295
296 /// <summary>
297 /// Finds an element matching the given mechanism and value.

Callers

nothing calls this directly

Calls 3

ExecuteMethod · 0.95
AddMethod · 0.45

Tested by

no test coverage detected