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)
| 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. |
nothing calls this directly
no test coverage detected