私は要素がページにあります。そして異なるテキストがあるかもしれません。私は(コードは以下)のようにしようとしており、コンソールには表示されません。分度器で要素のテキストを一致させる
this.checkStatus = function() {
var element = $('.message')
browser.wait(EC.visibilityOf(element), 5000).then(function() {
browser.wait(EC.textToBePresentInElement(conStatus, 'TEXT1'), 500).then(function() {
console.log('TEXT1');
})
browser.wait(EC.textToBePresentInElement(element, 'TEXT2'), 500).then(function() {
console.log('TEXT2');
})
browser.wait(EC.textToBePresentInElement(element, 'TEXT3'), 500).then(function() {
console.log('TEXT3');
})
browser.wait(EC.textToBePresentInElement(element, 'TEXT4'), 500).then(function() {
console.log('TEXT4');
})
})
return this;
}
おかげ
こんにちはAlecxeを!手伝って頂けますか ? http://stackoverflow.com/questions/39284506/how-to-integrate-protractor-test-cases-in-atom-using-typescript http://stackoverflow.com/questions/39348479/how- jasmine-framewo-noredirect = 1#comment66036450_39348479 のような書式を書いて書いた分度器テストスクリプトを使用しています。 –