From 097b5e4803dff84b97821a0b5ce5f5ac0eb6b6ff Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 28 May 2023 20:54:33 +0200 Subject: 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. --- Userland/Services/WebContent/WebContentServer.ipc | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Services/WebContent/WebContentServer.ipc') diff --git a/Userland/Services/WebContent/WebContentServer.ipc b/Userland/Services/WebContent/WebContentServer.ipc index 748b6deb87..ceea4f0375 100644 --- a/Userland/Services/WebContent/WebContentServer.ipc +++ b/Userland/Services/WebContent/WebContentServer.ipc @@ -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() =| -- cgit v1.2.3