Skip to content

Click a not existing element in the page doesn't fail the build #64

Open
@cedmax

Description

@cedmax

I tried it with

    .waitForElement('a.vd-box')
        .assert.attr('a.vd-box', 'href', 'http://www.youtube.com/watch?v=' + video)
    .click('a.NOT_EXISTING_CLASS')
    .waitForElementPresent('iframe.mfp-iframe')
        .assert.attr('iframe.mfp-iframe', 'src', 'http://www.youtube.com/embed/'+video+'?autoplay=1&iv_load_policy=3')
    .done();
    }

and the build succeeds.
screenshot 2014-02-27 12 24 21

I would expect an error raised for the missing element, instead there is a silent error and the following waitForElementPresent fails to get executed.

DalekJS CLI Tools Version: 0.0.4
DalekJS local install: 0.0.8

on PhantomJS 1.9.7 / Mac OSx 10.9.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions