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

Method WebElement

dotnet/src/webdriver/WebElement.cs:47–53  ·  view source on GitHub ↗

Initializes a new instance of the class. The instance that is driving this element. The ID value provided to identify the element. If or are .

(WebDriver parentDriver, string id)

Source from the content-addressed store, hash-verified

45 /// <param name="id">The ID value provided to identify the element.</param>
46 /// <exception cref="ArgumentNullException">If <paramref name="parentDriver"/> or <paramref name="id"/> are <see langword="null"/>.</exception>
47 public WebElement(WebDriver parentDriver, string id)
48 {
49 ArgumentNullException.ThrowIfNull(parentDriver);
50 ArgumentNullException.ThrowIfNull(id);
51 this.driver = parentDriver;
52 this.Id = id;
53 }
54
55 /// <summary>
56 /// Gets the <see cref="IWebDriver"/> driving this element.

Callers

nothing calls this directly

Calls 1

ThrowIfNullMethod · 0.80

Tested by

no test coverage detected