@wdio/mcp 3.2.1 → 3.2.2

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 CHANGED
@@ -46,7 +46,7 @@ var package_default = {
46
46
  type: "git",
47
47
  url: "git://github.com/webdriverio/mcp.git"
48
48
  },
49
- version: "3.2.0",
49
+ version: "3.2.1",
50
50
  description: "MCP server with WebdriverIO for browser and mobile app automation (iOS/Android via Appium)",
51
51
  main: "./lib/server.js",
52
52
  module: "./lib/server.js",
@@ -1200,7 +1200,9 @@ function shouldIncludeElement(element, filters, isNative, automationName) {
1200
1200
  visibleOnly = true
1201
1201
  } = filters;
1202
1202
  if (!matchesTagFilters(element, includeTagNames, excludeTagNames)) {
1203
- return false;
1203
+ if (element.attributes?.clickable !== "true") {
1204
+ return false;
1205
+ }
1204
1206
  }
1205
1207
  if (!matchesAttributeFilters(element, requireAttributes, minAttributeCount)) {
1206
1208
  return false;