So I believe after looking through the documentation that this should work correctly, but I would like to have something run one the expect has finished, however currently it not seem to be working.
Working
browser
.url('https://www.google.co.uk/?')
.expect.element('.Google Search').value.to.contain('Dashboard')
.perform(function() {
console.log('elementValue');
})
Broken
browser
.url('https://www.google.co.uk/?')
.expect.element('.Google Search').value.to.contain('Dashboard')
.perform(function() {
console.log('elementValue');
})
Error while running perform command: browser.moveToElement(...).doubleClick(...).setValue(...).click(...).expect.element(...).text.to.contain(...).perform is not a function
Aucun commentaire:
Enregistrer un commentaire