We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0eef6 commit c85ca84Copy full SHA for c85ca84
src/McpContext.ts
@@ -342,13 +342,9 @@ export class McpContext implements Context {
342
// The AXNode for an option doesn't contain its `value`.
343
// Therefore, set text content of the option as value.
344
if (node.role === 'option') {
345
- const handle = await node.elementHandle();
346
- if (handle) {
347
- const textContentHandle = await handle.getProperty('textContent');
348
- const optionText = await textContentHandle.jsonValue();
349
- if (optionText) {
350
- nodeWithId.value = optionText.toString();
351
- }
+ const optionText = node.name;
+ if (optionText) {
+ nodeWithId.value = optionText.toString();
352
}
353
354
0 commit comments