I want to use standard css to be able to find a certain element.
Before our search component was just id=search for all our sites (I use the same script for same sites since it's the same codebase)
Unfortunately the developer changed it so that it contains a primary key for each site/country
The search box id is now "search-component-<primary_key>
This is the sample of the html from the page
US:<input id="search-component-8798528996412">
AU:<input id="search-component-8798102914108">
Since they are all using the same code I want to be able to use the same script or locator, but robot-framework can't seem to support it.
I have tried [id|=search-component] and [id^=search-component] . I am not sure what else I should do. I don't want to have to enter each primary key per country, because it seems too much of a hassle.
Any ideas?