Skip to content

Commit 170ebf6

Browse files
authored
Update README.md
1 parent bee61fe commit 170ebf6

1 file changed

Lines changed: 57 additions & 1 deletion

File tree

README.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,57 @@
1-
# Selenium.WebDriver.Linq
1+
# Selenium.WebDriver.Linq
2+
3+
The LinqWebElement class extends the WebElement class and provides additional functionalities for interacting with web elements using LINQ expressions. It encapsulates an IWebElement object and enhances it with convenient methods and properties.
4+
5+
6+
- webElement: The underlying IWebElement object to encapsulate.
7+
- parentDriver: The parent driver associated with the web element.
8+
- id: The unique identifier of the web element.
9+
10+
### Properties
11+
12+
#### Id
13+
Gets or sets the ID attribute of the web element.
14+
15+
#### Class
16+
Gets or sets the class attribute of the web element.
17+
18+
#### Style
19+
Gets or sets the inline style attribute of the web element.
20+
21+
#### Parent
22+
Gets the parent web element of the current web element as a LinqWebElement object.
23+
24+
#### Children
25+
Gets the child web elements of the current web element as an enumerable collection of LinqWebElement objects.
26+
27+
#### Siblings
28+
Gets the sibling web elements of the current web element as an enumerable collection of LinqWebElement objects.
29+
30+
#### Attributes
31+
The Attributes property provides a dictionary of attributes and their values for the web element. The dictionary contains the attribute names as keys and their corresponding values as values.
32+
33+
### Methods
34+
35+
#### Delete()
36+
Deletes the current web element.
37+
38+
#### SetAttribute(string attribute, string value)
39+
Sets the value of the specified attribute for the web element.
40+
- attribute: The name of the attribute.
41+
- value: The value to set for the attribute.
42+
43+
#### HasAttribute(string attribute)
44+
Checks if the web element has the specified attribute.
45+
46+
- attribute: The name of the attribute to check.
47+
48+
#### SetText(string text)
49+
Sets the text content of the web element.
50+
51+
- text: The text to set.
52+
53+
#### AppendHtml(string html)
54+
55+
Appends the specified HTML content to the web element.
56+
57+
- html: The HTML content to append.

0 commit comments

Comments
 (0)