@wdio/mcp 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +3 -3
- package/lib/server.js.map +1 -1
- package/lib/snapshot.js +1 -1
- package/lib/snapshot.js.map +1 -1
- package/package.json +2 -2
package/lib/server.js
CHANGED
|
@@ -893,7 +893,7 @@ function checkXPathUniqueness(doc, xpathExpr, targetNode) {
|
|
|
893
893
|
}
|
|
894
894
|
if (targetNode) {
|
|
895
895
|
for (let i = 0; i < nodes.length; i++) {
|
|
896
|
-
if (nodes[i]
|
|
896
|
+
if (nodes[i] === targetNode || isSameElement(nodes[i], targetNode)) {
|
|
897
897
|
return {
|
|
898
898
|
isUnique: false,
|
|
899
899
|
index: i + 1,
|
|
@@ -2347,7 +2347,7 @@ var package_default = {
|
|
|
2347
2347
|
type: "git",
|
|
2348
2348
|
url: "git://github.com/webdriverio/mcp.git"
|
|
2349
2349
|
},
|
|
2350
|
-
version: "2.
|
|
2350
|
+
version: "2.2.0",
|
|
2351
2351
|
description: "MCP server with WebdriverIO for browser and mobile app automation (iOS/Android via Appium)",
|
|
2352
2352
|
main: "./lib/server.js",
|
|
2353
2353
|
module: "./lib/server.js",
|
|
@@ -2384,7 +2384,7 @@ var package_default = {
|
|
|
2384
2384
|
prepare: "husky"
|
|
2385
2385
|
},
|
|
2386
2386
|
dependencies: {
|
|
2387
|
-
"@modelcontextprotocol/sdk": "1.
|
|
2387
|
+
"@modelcontextprotocol/sdk": "1.26",
|
|
2388
2388
|
xpath: "^0.0.34",
|
|
2389
2389
|
"@toon-format/toon": "^2.1.0",
|
|
2390
2390
|
"@wdio/protocols": "^9.16.2",
|