Skip to content

Commit 542b60a

Browse files
miraoclaude
andcommitted
test(webapi): check grabWebElement() result via toOuterHTML()
getText() is not implemented for CDPBrowser's WebElement, which broke the Lightpanda, Moli and Obscura jobs. toOuterHTML() works on all helpers and still fails on a raw Puppeteer ElementHandle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d26bf86 commit 542b60a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/helper/webapi.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ export function tests() {
27382738
// Test grabbing specific element
27392739
if (!isHelper('WebDriver')) {
27402740
const submitButton = await I.grabWebElement({ role: 'button', text: 'Submit' })
2741-
assert.equal(await submitButton.getText(), 'Submit')
2741+
assert.match(await submitButton.toOuterHTML(), /id="submitBtn"/)
27422742
}
27432743

27442744
// Test grabbing text from role elements

0 commit comments

Comments
 (0)