<input id="k" type="submit" class="btn btn_search" value="Search">
tried
await page.click('button:has-text("SEARCH")');
await page.click('button:has-text("Search")');
await page.click('button.btn.btn_search');
await page.click('button:btn.btn_search'); # <-- not valid selector
await page.click('button#k');
await page.click('BUTTON[type="submit"]');
all end up with timeout (except where noted)
e.g. page.click: Timeout 30000ms exceeded. =========================== logs =========================== waiting for selector "button#k"
If you want to select a button with text the syntax is: await page.locator('button:text("Button Text Here")');
.
So to click you would type: await page.locator('button:text("Button Text Here")').click();