В
Size: a a a
В
В
В
MB
ВС
MB
ВС
А
OK
OK
protected get shadowRoot(): ElementFinder {
// TODO: Failed: javascript error: Cannot read property 'shadowRoot' of null in case home page is not loaded.
// Make error message cleaner in this case
return element(By.js(function () {
try {
return Array.prototype.slice.call(
document.querySelector('ride-ibe')
.shadowRoot.querySelectorAll('#mdr-ibe')
);
} catch (err) {
return [];
}
}));
}А
protected get shadowRoot(): ElementFinder {
// TODO: Failed: javascript error: Cannot read property 'shadowRoot' of null in case home page is not loaded.
// Make error message cleaner in this case
return element(By.js(function () {
try {
return Array.prototype.slice.call(
document.querySelector('ride-ibe')
.shadowRoot.querySelectorAll('#mdr-ibe')
);
} catch (err) {
return [];
}
}));
}Т
async shouldHaveValue(text) {
await logger.info(`Element should have value "${text}"`)
await this.control.should(have.value(text));
}AP
async shouldHaveValue(text) {
await logger.info(`Element should have value "${text}"`)
await this.control.should(have.value(text));
}Т
AP
Т

AP
Т
AP
AP