Is it possible to have a regex in CSS Selector for tagname ?

Viewed 2914

I want to find elements using selenium webdriver with either h2 or h3 tag.

Is it possible to have a generic css selector for the above requirement ?

Something similar to [tag^='h'] or [att^=str] ?

3 Answers
Related