Skip to content

Commit da587de

Browse files
committed
Find the message box by its Message label on the page too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
1 parent 28247b8 commit da587de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎android-shell/app/src/androidTest/java/ai/openbot/shell/test/ShellTestBase.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ abstract class ShellTestBase {
272272
bounds(composer())?.let { return it }
273273
if (variant != "debug") return null
274274
val raw = pageString(
275-
"(function(){var e=document.querySelector('[contenteditable=\"true\"],textarea');" +
275+
"(function(){var e=document.querySelector('[aria-label=\"Message\"],[contenteditable]:not([contenteditable=\"false\"]),textarea');" +
276276
"if(!e)return 'null';var r=e.getBoundingClientRect();if(r.width<1||r.height<1)return 'null';" +
277277
"return JSON.stringify({l:r.left,t:r.top,r:r.right,b:r.bottom,d:window.devicePixelRatio});})()",
278278
)

0 commit comments

Comments
 (0)