SeleniumHQ / fluent-selenium

Fluent Selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find elements without having to use a tag

JonMR opened this issue · comments

We have some h6 elements which AFAICT isn't supported by the API. I see how I could fork the code and add support, but I don't really care that these elements are h6.

That got me thinking I'd like to be able to find elements without necessarily having to provide a tag name. Maybe two methods elem(By by) and elems(By by).

I looked through the code and it looks like the tag name requirement is carried through the entire code base. That prompted me to open this issue to see if you'd be open to such a change?

There is a findElement inheritence from WebDriver but it will return a WebDriver object and not a fluent one.

So it can be a good thing to get elem(), elem(By by), elems() and elems(By by) method.

May propose a pull request?

.element(..) is in the API now.