Answer the question
In order to leave comments, you need to log in
How to close alert in nightwatchjs?
I need to click OK on the alert. There is a simple code:
module.exports = {
'Can user log in?' : function (browser) {
browser
.maximizeWindow()
.url('http://127.0.0.1:3000')
.waitForElementVisible('body', 1000)
// Вот тут надо нажать ОК на алерте
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question