You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call Event.findElement with a pattern that doesn't match any elements in the ancestor chain, you get an error (in Chrome and FF) caused by getAttribute() being called on the root HTML document object, which doesn't have a getAttribute method. It is easily reproducible:
Oh, didn't know about '*[blah]'. I guess I figured if the syntax was invalid, the selector would have failed earlier. :) Thanks for moving it to lighthouse, wasn't sure where the right place to report this was.
If you call
<script type="text/javascript" src="/javascripts/prototype.js"></script> <script type="text/javascript"> function clickme(event) { try { alert(event.findElement('[bogus-attr]')); } catch(e) { alert(e); } } </script> Click me!Event.findElement
with a pattern that doesn't match any elements in the ancestor chain, you get an error (in Chrome and FF) caused bygetAttribute()
being called on the root HTML document object, which doesn't have agetAttribute
method. It is easily reproducible:For now, I'm working around this by putting a try/catch around
findElement
calls.The text was updated successfully, but these errors were encountered: