cnishina on selenium4
chore(release): bumpb version t… (compare)
multiCapabilities: [
{
shardTestFiles: false,
browserName: "chrome",
sequential: true,
specs: ["src/e2e/specs/hello.spec.ts"],
},
{
browserName: "chrome",
shardTestFiles: true,
maxInstances: 2,
sequential: true,
specs: ["src/e2e/specs/hello-1.spec.ts", "src/e2e/specs/hello-2.spec.ts"],
}
],
- Failed: No element found using locator: By(css selector, .configuration-step-body)
Executed 6 of 6 specs (1 FAILED) in 38 secs.
[11:12:58] I/launcher - 0 instance(s) of WebDriver still running
[11:12:58] I/launcher - chrome #01 failed 1 test(s)
[11:12:58] I/launcher - overall: 1 failed spec(s)
[11:12:58] E/launcher - Process exited with error code 1
return driver.wait(until.elementLocated(expectedResult), 10000).then(async function () {
await driver.wait(until.elementIsVisible(outwardTravelDate), 10000);
let actualResult = await outwardTravelDate.getText();
assert.equal(actualResult, expectedText);
});
It passes
it("delete competence", () => {
const d = element.all(by.id("deleteIcon"));
expect(d.count()).toBeGreaterThan(0);
});
But when I try to click. I get: NoSuchElementError: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By(css selector, *[id="deleteIcon"])
it("delete competence", () => {
const d = element.all(by.id("deleteIcon"));
expect(d.count()).toBeGreaterThan(0);
d.get(0).click();
});
Is somebody had such problems?
return browser.controlFlow().execute(() => {
return aws.downloadSomething(downloadedData => {
doSomethingWithMyData(downloadedData);
}
})