Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Add .wait until <event> fired #98

Open
0xgeert opened this issue Jul 29, 2017 · 2 comments
Open

Add .wait until <event> fired #98

0xgeert opened this issue Jul 29, 2017 · 2 comments

Comments

@0xgeert
Copy link

0xgeert commented Jul 29, 2017

Consider the use case where we wait until a certain event is fired. For example a really useful one is the following:

const html = await chromeless
    .goto('https://www.github.com')
    .wait('DOMContentLoaded')
    .html()

Note: Lifted this from #74 (comment) by @Kikobeats

@0xgeert 0xgeert changed the title add .wait until <event> fired Add .wait until <event> fired Jul 29, 2017
@joelgriffith
Copy link
Contributor

joelgriffith commented Jul 29, 2017

Once something like #110 lands we'll have a clear path for this sort of thing. From that we can (or consumers) can write higher-level methods using it, like DomContentLoaded

@nasa8x
Copy link

nasa8x commented Oct 11, 2017

I use .wait('DOMContentLoaded') but not working. How do I write code right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants