A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/1c5fe11397eb04f51dd16fadc6cc03587a394a96 below:

[JS] Fix window test in firefox · SeleniumHQ/selenium@1c5fe11 · GitHub

@@ -44,15 +44,15 @@ test.suite(function (env) {

44 44

it('can set size of the current window from frame', async function () {

45 45

await driver.get(test.Pages.framesetPage)

46 46 47 -

var frame = await driver.findElement({ css: 'frame[name="fourth"]' })

47 +

const frame = await driver.findElement({ css: 'frame[name="fourth"]' })

48 48

await driver.switchTo().frame(frame)

49 49

await changeSizeBy(-20, -20)

50 50

})

51 51 52 52

it('can set size of the current window from iframe', async function () {

53 53

await driver.get(test.Pages.iframePage)

54 54 55 -

var frame = await driver.findElement({ css: 'iframe[name="iframe1-name"]' })

55 +

const frame = await driver.findElement({ css: 'iframe[name="iframe1-name"]' })

56 56

await driver.switchTo().frame(frame)

57 57

await changeSizeBy(-20, -20)

58 58

})

@@ -85,7 +85,7 @@ test.suite(function (env) {

85 85

height: 480,

86 86

})

87 87 88 -

return driver.wait(forPositionToBe(newX, newY), 1000)

88 +

await driver.wait(forPositionToBe(newX, newY), 1000)

89 89

})

90 90 91 91

it('can set the window position from a frame', async function () {

@@ -99,7 +99,7 @@ test.suite(function (env) {

99 99

y += 10

100 100 101 101

await driver.manage().window().setRect({ width: 640, height: 480, x, y })

102 -

return driver.wait(forPositionToBe(x, y), 1000)

102 +

await driver.wait(forPositionToBe(x, y), 1000)

103 103

})

104 104 105 105

it('can open a new window', async function () {

@@ -136,7 +136,7 @@ test.suite(function (env) {

136 136

if (rect.width === width && rect.height === height) {

137 137

return

138 138

}

139 -

return driver.wait(forSizeToBe(width, height), 1000)

139 +

return await driver.wait(forSizeToBe(width, height), 1000)

140 140

}

141 141 142 142

function forSizeToBe(w, h) {


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4