私は、表示されたデータの名前と検索された名前とを比較するための分度器のテストケースを作成しています。予期しない値を返す分度器ElementFinder
私のテストケースは正常に動作しますが、何が起こっているのか理解できません。私は名前を比較すると予想するので、期待どおりに比較しますが、私はconsole.logのelementFinder(rowData)(i have attached the output screen shot here)の値を印刷するとき、私は理解できないいくつかの値の巨大なリストを表示?
PS:私は、初心者が
This is the testCase:
it('should show proper data for given last name', function() {
var searchValue='manning';
searchBox.sendKeys(searchValue);
search.click();
element.all(by.binding('row.loanNumber')).count().then(function(value) {
var loanCount = value;
for (var i = 0; i < loanCount; i++) {
var rowData = element.all(by.binding('row.borrowerName')).get(i).getText();
expect(rowData).toMatch(searchValue.toUpperCase());
console.log(rowData,'*****',searchValue.toUpperCase());
}
});
});`
をprotractor`そして
[分度器コンソールログ](http://stackoverflow.com/questions/19941739/protractor-console-log)の可能な複製 –