jonhoo / fantoccini

A high-level API for programmatically interacting with web pages through WebDriver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Locator - tag name

leaty opened this issue · comments

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!

Glad to hear it! You should be able to do that with Locator::Css("a"), no?

commented

Oh! So css isn't just stylesheet tags like classes, I'll try it tomorrow. Thank you! 👍

Ah, sorry, yes, Locator::Css is any CSS selector. So you can do like Css("section > header h1 a") if you want.