Skip to content

Commit 0ce0c35

Browse files
committed
updated chromdriver to 103
1 parent 2ce9c05 commit 0ce0c35

File tree

5 files changed

+40
-72
lines changed

5 files changed

+40
-72
lines changed

chromedriver.exe

355 KB
Binary file not shown.

package-lock.json

+37-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"testWD": "mocha test/WD/Mocha/hello-openfin.js"
99
},
1010
"dependencies": {
11-
"selenium-webdriver": "4.1.1",
11+
"selenium-webdriver": "4.4.0",
1212
"webdriverio": "7.13.0",
1313
"wd": "^0.3.10",
1414
"mocha": "9.1.1",

test/WebDriverIO/Mocha/hello-openfin.js

+1-15
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Hello OpenFin App testing with webdriver.io', function() {
6464
async function switchWindow(windowHandle, callback) {
6565
await client.switchToWindow(windowHandle);
6666
const title = await client.getTitle();
67-
callback(title);
67+
await callback(title);
6868
}
6969

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

141-
it("Find notification button", async () => {
142-
should.exist(client);
143-
const button = await client.$("#desktop-notification");
144-
should.exist(button);
145-
notificationButton = button;
146-
});
147-
148-
it("Click notification button", async () => {
149-
should.exist(client);
150-
should.exist(notificationButton);
151-
await notificationButton.click();
152-
});
153-
154-
155141
it("Find CPU Info button", async () => {
156142
should.exist(client);
157143
const button = await client.$("#cpu-info");

test/WebDriverJs/Mocha/hello-openfin.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('Hello OpenFin App testing with selenium-webdriver', function () {
5555
async function switchWindow(windowHandle, callback) {
5656
await client.switchTo().window(windowHandle);
5757
const title = await client.getTitle();
58-
callback(title);
58+
await callback(title);
5959
}
6060

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

195-
196-
it("Find notification button", async function () {
197-
expect(client).to.exist;
198-
notificationButton = await client.findElement(webdriver.By.id("desktop-notification"));
199-
});
200-
201-
it("Click notification button", async function () {
202-
expect(client).to.exist;
203-
expect(notificationButton).to.exist;
204-
await notificationButton.click();
205-
// give time for notification to show up
206-
await client.sleep(2000);
207-
});
208-
209-
210195
it("Find CPU Info button", async function () {
211196
expect(client).to.exist;
212197
cpuInfoButton = client.findElement(webdriver.By.id("cpu-info"));

0 commit comments

Comments
 (0)