Hello Maialen,
You can use “element.sendKeys(Keys.ENTER)” to first get the focus into your search box.
Or directly use “element.sendKeys(“Your search text”)”.
Or there is another option you can use is TouchAction class and pass the screen coordinates to it just to get the focus into your search box for this approach you will only need the screen coordinates of your element.