Does findElementByName(String Name) support regexp FOR iOS?
I have a list contains some text, e.g. sunny_Monday, rainy_Tuesday, cloud_Wednesday…
I want to use the method like:
driver.findElementByName(“sunny”).click();
or driver.findElementByName("^sunny").click();
to click the text “sunny_Monday”, but it doesn’t work.
Since I could not get the full text (only can get the ‘sunny’, ‘rainy’, ‘cloud’, the suffix is dynamic for every word), Is there any other way to achieve this?