Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
element(by.css('div[row="0"] div[colid="mood"] img')).getAttribute("src").then((src) => {
expect(src).toEqual("http://localhost:8080/images/smiley-sad.png");
});
});
element(by.css('div[row="2"] div[colid="params')).getText().then((text) => {
expect(text).toEqual("Field: row, Value: Row 2");
});
});
element(by.css('div[row="0"] div[colid="mood"] img')).getAttribute("src").then((src) => {
expect(src).toEqual("http://localhost:8080/images/smiley.png");
});
})
element(by.css('div[row="0"] div[colid="row')).getText().then((text) => {
expect(text).toEqual("Row 0");
});
})