ebrehault / resurrectio

CasperJS test recorder Chrome extension
GNU General Public License v2.0
721 stars 106 forks source link

Fix for when a form contains a input called "name" #34

Closed SvanteRichter closed 6 years ago

SvanteRichter commented 6 years ago

When a form contains a input called name calling name on the form will return that input element, not the forms name. This results in a selector like form[name=[object Object]] when later stringified. The fix is to call getAttribute() instead of accessing the property directly.

Tested on Chrome 59.0.3071.109.