From 5aa87dfc49d64adf3234e379e7afc5a2d422123b Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Sun, 23 Aug 2026 10:46:35 +0100 Subject: [PATCH] testing-examples: adapt image capture example to duckduckgo redesign The duckduckgo homepage search box is now a textarea inside the new AI searchbox (the old searchbox_input id moved to the chat box), so the input[...] selector matched nothing and every CI run failed in the capture screenshot scenario. The results page selectors still work. Assisted-by: Claude:claude-fable-5 --- .../examples/webtauexamples/imageCapture.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/znai-testing-examples/examples/webtauexamples/imageCapture.groovy b/znai-testing-examples/examples/webtauexamples/imageCapture.groovy index 6733126f8..f5082f6d8 100644 --- a/znai-testing-examples/examples/webtauexamples/imageCapture.groovy +++ b/znai-testing-examples/examples/webtauexamples/imageCapture.groovy @@ -2,7 +2,7 @@ package webtauexamples import static org.testingisdocumenting.webtau.WebTauGroovyDsl.* -def homeSearchInput = $('input[class*="searchbox_input"], input[class*="search-input"]') +def homeSearchInput = $('textarea[class*="search-input"], input[class*="searchbox_input"], input[class*="search-input"]') def resultSearchInput = $("#search_form_input") def result = $('article[data-testid="result"]')