Skip to content

Update McpContext.ts#170

Closed
Sauravdas007 wants to merge 1 commit intoChromeDevTools:mainfrom
Sauravdas007:main
Closed

Update McpContext.ts#170
Sauravdas007 wants to merge 1 commit intoChromeDevTools:mainfrom
Sauravdas007:main

Conversation

@Sauravdas007
Copy link
Copy Markdown

on the line 273 i have changed error message . where using langchain user navigating to wrong commentword

async getElementByUid(uid: string): Promise<ElementHandle> {
if (!this.#textSnapshot?.idToNode.size) {
throw new Error('No snapshot found. Use browser_snapshot to capture one'); // <-- THIS LINE
}
// ... rest of the method
}
........the above error message to : throw new Error('No snapshot found. Use take_snapshot to capture one'); ...............as new crome changes to browse_snapshot >> take_snapshot

on the line 273 i have changed 

async getElementByUid(uid: string): Promise<ElementHandle<Element>> {
  if (!this.#textSnapshot?.idToNode.size) {
    throw new Error('No snapshot found. Use browser_snapshot to capture one'); // <-- THIS LINE
  }
  // ... rest of the method
}
........the above error message to : throw new Error('No snapshot found. Use take_snapshot to capture one');
...............as new crome changes to browse_snapshot >> take_snapshot
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Sep 26, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@OrKoN OrKoN closed this in #205 Sep 29, 2025
OrKoN added a commit that referenced this pull request Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant