LucianoGanga / simple-headless-chrome

Simple abstraction to use Chrome as a Headless Browser with Node JS
MIT License
217 stars 50 forks source link

Function "visible" missing await #69

Closed mdickin closed 7 years ago

mdickin commented 7 years ago

When I try to call visible, I get the following error:

"TypeError: Cannot read property 'value' of undefined"

Looking at the source, every other call to this.evaluate() uses await, but visible handles it synchronously.

When I moved visible.result.value to a .then() handler, it worked fine.

LucianoGanga commented 7 years ago

Thanks @mdickin !! I fixed it in v4.3.10 :)

Cheers! Luciano