New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Body#link relates to an HTML attribute rather than a tag #12
Comments
After looking into this, |
This is currently the same behavior as |
There's no good reason, actually. I was only experimenting. Found it strange that it doesn't work. |
To explain it better... Each element has a set of valid attributes, which are listed in https://github.com/watir/watir/blob/master/lib/watir/elements/html_elements.rb Basically, since |
Yeah, Watir needs to add it to this method: https://github.com/watir/watir/blob/master/lib/watir/generator/html/generator.rb#L18-L20 |
This will fix it: watir/watir@fecf8cb |
@lmtierney the code has been updated in Watir |
This should now be fixed via 4bdca07 released in |
Meta -
Nerodia Version: 0.9.0
Expected Behavior -
Invoking methods on
body
works just as with other elements.Actual Behavior -
Invoking methods on
body
doesn't work. It fails withTypeError: 'str' object is not callable
Steps to reproduce -
The text was updated successfully, but these errors were encountered: