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
* feat: implement waitFor tool
* docs: update README to reflect new location API and waitForElement tool
* docs: udpate comments in examples
* fix: use openAndWait instead of url in navigate tool
* fix: update error messages to be more readable
Copy file name to clipboardExpand all lines: README.md
+98-39Lines changed: 98 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ A [Model Context Protocol server](https://modelcontextprotocol.io/quickstart/use
37
37
<details>
38
38
<summary>Set up in Cursor</summary>
39
39
40
-
Open Cursor `Settings` (button at the top right corner of the screen), find `MCP` section, click on the `Add new global MCP server` button, edit the config to include Testplane MCP as seen below.
40
+
Open Cursor `Settings` (button at the top right corner of the screen), find `Tools & Integrations` section, click on the `New MCP Server` button, edit the config to include Testplane MCP as seen below.
41
41
42
42
```json
43
43
{
@@ -173,9 +173,12 @@ Close a specific browser tab by its number (1-based), or close the current tab i
173
173
### `clickOnElement`
174
174
Click an element on the page using semantic queries (`testing-library`-style) or CSS selectors.
175
175
176
-
- Semantic Queries:
177
-
- **Parameters:**
178
-
- `queryType` (string, optional): Semantic query type. One of:
176
+
- **Parameters:**
177
+
- `locator` (object, required): Element location strategy
178
+
- `strategy` (string, required): Either `"testing-library"` or `"webdriverio"`
179
+
180
+
For **testing-library strategy**:
181
+
- `queryType` (string, required): Semantic query type. One of:
179
182
- `"role"` - Find by ARIA role (e.g., "button", "link", "heading")
180
183
- `"text"` - Find by visible text content
181
184
- `"labelText"` - Find form inputs by their label text
@@ -184,37 +187,69 @@ Click an element on the page using semantic queries (`testing-library`-style) or
184
187
- `"testId"` - Find by data-testid attribute
185
188
- `"title"` - Find by title attribute
186
189
- `"displayValue"` - Find inputs by their current value
187
-
- `queryValue` (string, required when using queryType): The value to search for
190
+
- `queryValue` (string, required): The value to search for
"Capture a DOM snapshot of the current page. Note: by default, only useful tags and attributes are included. Prefer to use defaults. Response contains info as to what was omitted. If you need more info, request a snapshot with more tags and attributes.",
49
+
"Capture a DOM snapshot of the current page. Note: by default, not useful tags and attributes are excluded (e.g. script, style, etc.). Prefer to use defaults. Response contains info as to what was omitted. If you need more info, request a snapshot with more tags and attributes.",
0 commit comments