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
{{ message }}
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
const{ Chromeless }=require('chromeless')asyncfunctionrun(){constchromeless=newChromeless()constscreenshot=awaitchromeless.goto('https://www.google.com').type('chromeless','input[name="q"]').press(13).wait('#resultStats',2000)//could I specify the wait time, not only the default time.screenshot()console.log(screenshot)// prints local file path or S3 urlawaitchromeless.end()}run().catch(console.error.bind(console))
could I specify the wait time, not only the default time
The text was updated successfully, but these errors were encountered:
Hi @ylscsdb I don't entirely understand your question. Let me point out that you can do this:
constscreenshot=awaitchromeless.goto('https://www.google.com').type('chromeless','input[name="q"]').press(13).wait('#resultStats')// wait for #resultStats to show up in the DOM.wait(2000)// wait for 2 more seconds, just because, for the fun of it.wait(()=>{while(c<1000000000){c+=1}})// wait until we've counted to a billion cuz why not?.screenshot()console.log(screenshot)// prints local file path or S3 urlawaitchromeless.end()
could I specify the wait time, not only the default time
The text was updated successfully, but these errors were encountered: