Skip to content

Commit

Permalink
Update sandbox_007_bidi.htm
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium authored Apr 16, 2024
1 parent 084605a commit 58ea4d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
}
});

// Wait is required to avoid false-positive passes.
// TODO: replace wait with a more efficient method.
await new Promise(resolve => setTimeout(resolve, 300));

const success_message_selector_result = await test_driver.bidi.browsing_context.locate_nodes({
context: iframe.context,
locator: {type: "innerText", value: "PASS!!!"}
});

// Wait is required to avoid false-positive passes.
// TODO: replace wait with a more efficient method.
await new Promise(resolve => setTimeout(resolve, 300));

assert_equals(success_message_selector_result.nodes.length, 0);
}, "Block form submission inside iframe with sandbox attribute.");
</script>

0 comments on commit 58ea4d9

Please sign in to comment.