Regular expressions in Web Driver locators fails.

naveen chettigari's picture

I am using selenium ide for finding the locators,here I got a locator 'link=History of *' which works in selenium ide but when I use the same locator in web driver code it fails.

Says " Unable to locate element: {"method":"link text","selector":"History of .*"} ".
Does selenium support regular expressions in its locators?

 

Please help me out in this.

1 Answer

StickyMinds is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.