Make sure previous query gets overwritten by tripple clicking
Change-Id: I695950f55a273801564fabd0e40f5c6497aea9b3
diff --git a/lib/korap_rc.js b/lib/korap_rc.js
index 8804bd2..67b31ee 100644
--- a/lib/korap_rc.js
+++ b/lib/korap_rc.js
@@ -40,6 +40,7 @@
async search(page, query) {
const query_field = await page.$("body > header > form > div > input[name=q]")
assert.notEqual(query_field, null)
+ await query_field.click({ clickCount: 3 })
await query_field.type(query)
await page.keyboard.press("Enter")
await page.waitForNavigation();