stagehand
stagehand copied to clipboard
page.act on an ObserveResult with click method does not replicate page.click
From this:
const [action] = await page.observe(step);
I get an ObserveResult
{
description: "A menuitem button labeled 'Rewards' in the menubar, which can be clicked to navigate to the Rewards section.",
method: "click",
selector: "xpath=/html/body[1]/div[1]/div[1]/div[1]/div[2]/button[6]"
}
Doing await page.act(action); does not click the button.
But it worked as expected when I tested using await page.click(action.selector). Is page.act() doing some conversion or processing on the selector?
Hey @ccpacillos do you have a URL that I can try to reproduce on? trying to confirm if this will be fixed by #819
Hi @seanmcguire12 . I just got back on this. Thanks for checking on this issue. I'll try to replicate again and will just create another issue if needed. Thanks!