Skip to content

wait-for-selector not working on some pages #517

@gmetais

Description

@gmetais

Hi @macbre !

I'm still having a issue with the option --wait-for-selector on some pages. The selector doesn't exist on the page but the test ends early.

Example:
phantomas --url=http://www.github.com --timeout=60 --phone --wait-for-selector=".foo.bar" --verbose

The problem seems to be located here:
https://github.com/macbre/phantomas/blob/devel/core/phantomas.js#L460
with this done() function being called twice.

Sorry, no pull request today as I can't find the reason behind the problem...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions