You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/scripting.md
+1-59Lines changed: 1 addition & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,7 @@ navigate not-a-comment.com
90
90
91
91
### Selectors
92
92
93
-
Commands like [`click`](#click), [`setValue`](#setvalue), and others operate on DOM elements. To select a DOM element, use the following selectors:
94
-
95
-
#### `<attribute>=<value>`
93
+
Commands like [`click`](#click), [`setValue`](#setvalue), and others operate on DOM elements. To select a DOM element, use the `<attribute>=<value>` selector.
96
94
97
95
This selector selects elements based on their HTML attributes. For the following input:
98
96
@@ -117,62 +115,6 @@ Example:
117
115
setValue type=email darth@vader.com
118
116
```
119
117
120
-
#### `innerText=<text>`
121
-
122
-
This selector selects elements based on its inner text. For the following button:
123
-
124
-
```html
125
-
<buttontype="submit">Login</button>
126
-
```
127
-
128
-
the following selectors will work:
129
-
130
-
* ✅ `innerText=Login`
131
-
132
-
and the following selectors will not:
133
-
134
-
* ❌ `innerText=login` (the selector is case sensitive)
135
-
* ❌ `innerText=log` (the selector must match the full string)
136
-
137
-
Also, for a different button, this will not work either:
138
-
139
-
* ❌ `innerText=log in` (spaces inside the text are not supported)
140
-
141
-
Example:
142
-
143
-
```markup
144
-
// Click the Login button
145
-
click innerText=Login
146
-
```
147
-
148
-
#### `innerHtml=<html>`
149
-
150
-
This selector selects elements based on its inner HTML. For the following link:
0 commit comments