LucianoGanga / simple-headless-chrome

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

input selector #84

Closed DevDaoud closed 6 years ago

DevDaoud commented 6 years ago

Hi everyone, for some reason i can do the following await mainTab.click('#header-links a') but i can't do this: await mainTab.click('input') knowing that there is only one input on the page. Thanks.

DevDaoud commented 6 years ago

i just founded why it was not working. the code was running before the element was present in the dom.