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 47b15ee commit 31e36c4Copy full SHA for 31e36c4
lib/handlers/actHandler.ts
@@ -307,9 +307,10 @@ export class StagehandActHandler {
307
private async _performPlaywrightMethod(
308
method: string,
309
args: unknown[],
310
- xpath: string,
+ rawXPath: string,
311
domSettleTimeoutMs?: number,
312
) {
313
+ const xpath = rawXPath.replace(/^xpath=/i, "").trim();
314
const locator = deepLocator(this.stagehandPage.page, xpath).first();
315
const initialUrl = this.stagehandPage.page.url();
316
0 commit comments