WebContent+headless-browser: Use document.body.innerText for text tests

This should be less fickle than the "select all & copy selected text"
trick we were doing earlier.
This commit is contained in:
Andreas Kling 2023-05-28 20:54:33 +02:00
commit 097b5e4803
Notes: sideshowbarker 2024-07-16 20:08:14 +09:00
4 changed files with 19 additions and 4 deletions

View file

@ -50,6 +50,7 @@ endpoint WebContentServer
run_javascript(DeprecatedString js_source) =|
dump_layout_tree() => (DeprecatedString dump)
dump_text() => (DeprecatedString dump)
get_selected_text() => (DeprecatedString selection)
select_all() =|