expect.element().text() 編集を提案
導入: v0.7要素に含まれるテキストを取得するプロパティ。指定されたテキストまたは正規表現を含むか、等しいか、一致するかを確認するためにチェーンできます。
使い方
例
this.demoTest = function (browser) {
browser.expect.element('#main').text.to.equal('The Night Watch');
browser.expect.element('#main').text.to.not.equal('The Night Watch');
browser.expect.element('#main').text.to.equal('The Night Watch').before(100);
browser.expect.element('#main').text.to.contain('The Night Watch');
browser.expect.element('#main').text.to.match(/The\ Night\ Watch/);
};