Skip to content

javascript problem #18

Open
Open
@ghost

Description

i have a problem with dalekjs when i want to run a js code into a function .execute , only with ie because with phantom and chrome it works.
this is an example:

test.open('http:******')
.waitFor(function () {
return window.document.querySelectorAll('.numItemsFil').length != 0;

                            })
        .execute(function(){

        var si = 0;
        var reg = new RegExp('^[0-9]');
        var elem =  window.document.getElementsByClassName('numItemsFil')[0].innerText;
        if(elem.match(reg)){ si =1;}
        this.assert.ok(si == 1);
        })
        .done();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions