Locator - tag name
leaty opened this issue · comments
leaty commented
I'm just wondering if this is in the plans, currently to get e.g. all "a" tags I need to use the full html source. Great job on the rest, works perfectly!
Jon Gjengset commented
Glad to hear it! You should be able to do that with Locator::Css("a")
, no?
leaty commented
Oh! So css isn't just stylesheet tags like classes, I'll try it tomorrow. Thank you! 👍
Jon Gjengset commented
Ah, sorry, yes, Locator::Css
is any CSS selector. So you can do like Css("section > header h1 a")
if you want.