assaf / zombie

Insanely fast, full-stack, headless browser testing using node.js
http://zombie.js.org/
MIT License
5.65k stars 518 forks source link

Unable to call "browser.attach" multiple times #1203

Open aik099 opened 4 years ago

aik099 commented 4 years ago

In contrast to browser.fill I can't call browser.attach multiple times.

On 2nd+ call to browser.attach method I'm getting Cannot redefine property: value error from Zombie. This happens, because in https://github.com/assaf/zombie/blob/5245de7b32974bcce0dd955cc70a0eda34ee97fe/src/index.js#L902 the value property of the element is defined in any case and not only, when it's absent.

Using Zombie 6.1.4.