Skip to content

Commit

Permalink
updated chromdriver to 103
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjunche committed Aug 11, 2022
1 parent 2ce9c05 commit 0ce0c35
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 72 deletions.
Binary file modified chromedriver.exe
Binary file not shown.
77 changes: 37 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"testWD": "mocha test/WD/Mocha/hello-openfin.js"
},
"dependencies": {
"selenium-webdriver": "4.1.1",
"selenium-webdriver": "4.4.0",
"webdriverio": "7.13.0",
"wd": "^0.3.10",
"mocha": "9.1.1",
Expand Down
16 changes: 1 addition & 15 deletions test/WebDriverIO/Mocha/hello-openfin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Hello OpenFin App testing with webdriver.io', function() {
async function switchWindow(windowHandle, callback) {
await client.switchToWindow(windowHandle);
const title = await client.getTitle();
callback(title);
await callback(title);
}

/**
Expand Down Expand Up @@ -138,20 +138,6 @@ describe('Hello OpenFin App testing with webdriver.io', function() {
should.exist(result);
});

it("Find notification button", async () => {
should.exist(client);
const button = await client.$("#desktop-notification");
should.exist(button);
notificationButton = button;
});

it("Click notification button", async () => {
should.exist(client);
should.exist(notificationButton);
await notificationButton.click();
});


it("Find CPU Info button", async () => {
should.exist(client);
const button = await client.$("#cpu-info");
Expand Down
17 changes: 1 addition & 16 deletions test/WebDriverJs/Mocha/hello-openfin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('Hello OpenFin App testing with selenium-webdriver', function () {
async function switchWindow(windowHandle, callback) {
await client.switchTo().window(windowHandle);
const title = await client.getTitle();
callback(title);
await callback(title);
}

/**
Expand Down Expand Up @@ -192,21 +192,6 @@ describe('Hello OpenFin App testing with selenium-webdriver', function () {
expect(v).to.exist;
});


it("Find notification button", async function () {
expect(client).to.exist;
notificationButton = await client.findElement(webdriver.By.id("desktop-notification"));
});

it("Click notification button", async function () {
expect(client).to.exist;
expect(notificationButton).to.exist;
await notificationButton.click();
// give time for notification to show up
await client.sleep(2000);
});


it("Find CPU Info button", async function () {
expect(client).to.exist;
cpuInfoButton = client.findElement(webdriver.By.id("cpu-info"));
Expand Down

0 comments on commit 0ce0c35

Please sign in to comment.