(Chai) assert.isBoolean is not a function - what i does wrong?

Viewed 3312

There are little part of code:

driver.wait(function(){ 
    return driver.isElementPresent(webdriver.By.className(errElement));
}, 3000, 'Element' + errElement + ' is not found').then(function(binaryVariable){
    assert.isTrue(binaryVariable, 'is not True');
      /*console.log(binaryVariable);
        console.log(typeof(binaryVariable));*/
}); 

if I enable debug print, in the console appears

true
boolean

It means that driver.wait returns boolean, so I try to check it via assert.isTrue. But I recieve error message assert.isTrue is not a function. What I does wrong?

1 Answers
Related