A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/8aeb1e1290d85cba2c67f097c03e6f4b5ba2dd4e below:

Run fluxbox as window manager for jobs using Xvfb (#11025) · SeleniumHQ/selenium@8aeb1e1 · GitHub

File tree Expand file treeCollapse file tree 9 files changed

+44

-21

lines changed

Filter options

Expand file treeCollapse file tree 9 files changed

+44

-21

lines changed Original file line number Diff line number Diff line change

@@ -171,6 +171,8 @@ jobs:

171 171

${{ runner.os }}-bazel-build-

172 172

- name: Setup bazelisk

173 173

uses: ./.github/actions/setup-bazelisk

174 +

- name: Setup Fluxbox

175 +

run: sudo apt-get -y install fluxbox

174 176

- name: Setup Java

175 177

uses: actions/setup-java@v1

176 178

with:

@@ -189,6 +191,8 @@ jobs:

189 191

matrix.browser == 'chrome'

190 192

- name: Start XVFB

191 193

run: Xvfb :99 &

194 +

- name: Start Fluxbox

195 +

run: fluxbox -display :99 &

192 196

- name: Run browser tests in ${{ matrix.browser }}

193 197

uses: ./.github/actions/bazel-test

194 198

with:

@@ -225,6 +229,8 @@ jobs:

225 229

${{ runner.os }}-bazel-build-

226 230

- name: Setup bazelisk

227 231

uses: ./.github/actions/setup-bazelisk

232 +

- name: Setup Fluxbox

233 +

run: sudo apt-get -y install fluxbox

228 234

- name: Setup Java

229 235

uses: actions/setup-java@v1

230 236

with:

@@ -243,6 +249,8 @@ jobs:

243 249

matrix.browser == 'chrome'

244 250

- name: Start XVFB

245 251

run: Xvfb :99 &

252 +

- name: Start Fluxbox

253 +

run: fluxbox -display :99 &

246 254

- name: Run server tests

247 255

uses: ./.github/actions/bazel-test

248 256

with:

@@ -270,6 +278,8 @@ jobs:

270 278

${{ runner.os }}-bazel-build-

271 279

- name: Setup bazelisk

272 280

uses: ./.github/actions/setup-bazelisk

281 +

- name: Setup Fluxbox

282 +

run: sudo apt-get -y install fluxbox

273 283

- name: Setup Java

274 284

uses: actions/setup-java@v1

275 285

with:

@@ -280,6 +290,8 @@ jobs:

280 290

version: latest

281 291

- name: Start XVFB

282 292

run: Xvfb :99 &

293 +

- name: Start Fluxbox

294 +

run: fluxbox -display :99 &

283 295

- name: Run browser tests in Firefox

284 296

uses: ./.github/actions/bazel-test

285 297

with:

Original file line number Diff line number Diff line change

@@ -53,6 +53,8 @@ jobs:

53 53

java-version: 11

54 54

- name: Setup bazelisk

55 55

uses: ./.github/actions/setup-bazelisk

56 +

- name: Setup Fluxbox

57 +

run: sudo apt-get -y install fluxbox

56 58

- name: Setup Firefox and GeckoDriver

57 59

uses: ./.github/actions/setup-firefox

58 60

with:

@@ -98,12 +100,16 @@ jobs:

98 100

java-version: 11

99 101

- name: Setup bazelisk

100 102

uses: ./.github/actions/setup-bazelisk

103 +

- name: Setup Fluxbox

104 +

run: sudo apt-get -y install fluxbox

101 105

- name: Setup Firefox and GeckoDriver

102 106

uses: ./.github/actions/setup-firefox

103 107

with:

104 108

version: ${{ matrix.version }}

105 109

- name: Start XVFB

106 110

run: Xvfb :99 &

111 +

- name: Start Fluxbox

112 +

run: fluxbox -display :99 &

107 113

- name: Run atom tests on Firefox

108 114

uses: ./.github/actions/bazel

109 115

with:

Original file line number Diff line number Diff line change

@@ -132,6 +132,8 @@ jobs:

132 132

${{ runner.os }}-bazel-python-unit-tests-

133 133

- name: Setup bazelisk

134 134

uses: ./.github/actions/setup-bazelisk

135 +

- name: Setup Fluxbox

136 +

run: sudo apt-get -y install fluxbox

135 137

- name: Set up Python 3.7

136 138

uses: actions/setup-python@v2

137 139

with:

@@ -144,6 +146,8 @@ jobs:

144 146

uses: ./.github/actions/setup-chrome

145 147

- name: Start XVFB

146 148

run: Xvfb :99 &

149 +

- name: Start Fluxbox

150 +

run: fluxbox -display :99 &

147 151

- name: Run browser tests in Chrome

148 152

uses: ./.github/actions/bazel-test

149 153

with:

@@ -171,6 +175,8 @@ jobs:

171 175

${{ runner.os }}-bazel-python-unit-tests-

172 176

- name: Setup bazelisk

173 177

uses: ./.github/actions/setup-bazelisk

178 +

- name: Setup Fluxbox

179 +

run: sudo apt-get -y install fluxbox

174 180

- name: Set up Python 3.7

175 181

uses: actions/setup-python@v2

176 182

with:

@@ -183,6 +189,8 @@ jobs:

183 189

uses: ./.github/actions/setup-firefox

184 190

- name: Start XVFB

185 191

run: Xvfb :99 &

192 +

- name: Start Fluxbox

193 +

run: fluxbox -display :99 &

186 194

- name: Run browser tests in Firefox (Remote)

187 195

uses: ./.github/actions/bazel

188 196

with:

@@ -209,6 +217,8 @@ jobs:

209 217

${{ runner.os }}-bazel-python-unit-tests-

210 218

- name: Setup bazelisk

211 219

uses: ./.github/actions/setup-bazelisk

220 +

- name: Setup Fluxbox

221 +

run: sudo apt-get -y install fluxbox

212 222

- name: Set up Python 3.7

213 223

uses: actions/setup-python@v2

214 224

with:

@@ -219,8 +229,10 @@ jobs:

219 229

java-version: '11'

220 230

- name: Setup Firefox and GeckoDriver

221 231

uses: ./.github/actions/setup-firefox

222 -

- name: Start XVFB

232 +

- name: Start Xvfb

223 233

run: Xvfb :99 &

234 +

- name: Start Fluxbox

235 +

run: fluxbox -display :99 &

224 236

- name: Run browser tests in Firefox

225 237

uses: ./.github/actions/bazel-test

226 238

with:

Original file line number Diff line number Diff line change

@@ -74,8 +74,12 @@ jobs:

74 74

restore-keys: |

75 75

${{ runner.os }}-bazel-ruby-${{ matrix.target }}-

76 76

- uses: ./.github/actions/setup-bazelisk

77 +

- name: Setup Fluxbox

78 +

run: sudo apt-get -y install fluxbox

77 79

- uses: ./.github/actions/setup-chrome

78 80

- run: Xvfb :99 &

81 +

- name: Start Fluxbox

82 +

run: fluxbox -display :99 &

79 83

- uses: ./.github/actions/bazel

80 84

with:

81 85

command: test --test_output=all //rb:${{ matrix.target }}

@@ -107,9 +111,13 @@ jobs:

107 111

restore-keys: |

108 112

${{ runner.os }}-bazel-ruby-${{ matrix.target }}-

109 113

- uses: ./.github/actions/setup-bazelisk

114 +

- name: Setup Fluxbox

115 +

run: sudo apt-get -y install fluxbox

110 116

- name: Setup Firefox and GeckoDriver

111 117

uses: ./.github/actions/setup-firefox

112 118

- run: Xvfb :99 &

119 +

- name: Start Fluxbox

120 +

run: fluxbox -display :99 &

113 121

- uses: ./.github/actions/bazel

114 122

with:

115 123

command: test --test_output=all //rb:${{ matrix.target }}

Original file line number Diff line number Diff line change

@@ -91,7 +91,6 @@ public void testGetsThePositionOfTheCurrentWindow() {

91 91

}

92 92 93 93

@Test

94 -

@Ignore(value = FIREFOX, gitHubActions = true, issue = "https://github.com/mozilla/geckodriver/issues/2042")

95 94

public void testSetsThePositionOfTheCurrentWindow() {

96 95

// Browser window cannot be resized or moved on ANDROID (and most mobile platforms

97 96

// though others aren't defined in org.openqa.selenium.Platform).

Original file line number Diff line number Diff line change

@@ -240,8 +240,6 @@ def test_is_element_displayed(driver, pages):

240 240 241 241 242 242

@pytest.mark.xfail_chrome

243 -

@pytest.mark.xfail_firefox(reason='https://github.com/mozilla/geckodriver/issues/2042')

244 -

@pytest.mark.xfail_remote(reason='https://github.com/mozilla/geckodriver/issues/2042')

245 243

def test_move_window_position(driver, pages):

246 244

pages.load("blank.html")

247 245

loc = driver.get_window_position()

Original file line number Diff line number Diff line change

@@ -65,8 +65,6 @@ def test_should_get_the_position_of_the_current_window(driver):

65 65

assert position.get('y') >= 0

66 66 67 67 68 -

@pytest.mark.xfail_firefox(reason='https://github.com/mozilla/geckodriver/issues/2042')

69 -

@pytest.mark.xfail_remote(reason='https://github.com/mozilla/geckodriver/issues/2042')

70 68

def test_should_set_the_position_of_the_current_window(driver):

71 69

position = driver.get_window_position()

72 70

@@ -93,8 +91,6 @@ def test_should_get_the_rect_of_the_current_window(driver):

93 91

assert rect.get('height') >= 0

94 92 95 93 96 -

@pytest.mark.xfail_firefox(reason='https://github.com/mozilla/geckodriver/issues/2042')

97 -

@pytest.mark.xfail_remote(reason='https://github.com/mozilla/geckodriver/issues/2042')

98 94

@pytest.mark.xfail_safari(raises=WebDriverException,

99 95

reason='Get Window Rect command not implemented')

100 96

def test_should_set_the_rect_of_the_current_window(driver):

Original file line number Diff line number Diff line change

@@ -53,8 +53,6 @@

53 53

guards.add_condition(:driver, GlobalTestEnv.driver)

54 54

guards.add_condition(:browser, GlobalTestEnv.browser)

55 55

guards.add_condition(:platform, WebDriver::Platform.os)

56 -

window_manager = !WebDriver::Platform.linux? || !ENV['DESKTOP_SESSION'].nil?

57 -

guards.add_condition(:window_manager, window_manager)

58 56 59 57

results = guards.disposition

60 58

send(*results) if results

Original file line number Diff line number Diff line change

@@ -60,10 +60,7 @@ module WebDriver

60 60

expect(pos.y).to be >= 0

61 61

end

62 62 63 -

it 'sets the position of the current window',

64 -

except: {browser: :firefox,

65 -

window_manager: false,

66 -

reason: 'https://github.com/mozilla/geckodriver/issues/2042'} do

63 +

it 'sets the position of the current window' do

67 64

pos = window.position

68 65 69 66

target_x = pos.x + 10

@@ -89,10 +86,7 @@ module WebDriver

89 86

expect(rect.height).to be >= 0

90 87

end

91 88 92 -

it 'sets the rect of the current window',

93 -

except: {browser: :firefox,

94 -

window_manager: false,

95 -

reason: 'https://github.com/mozilla/geckodriver/issues/2042'} do

89 +

it 'sets the rect of the current window' do

96 90

rect = window.rect

97 91 98 92

target_x = rect.x + 10

@@ -111,7 +105,7 @@ module WebDriver

111 105

expect(new_rect.height).to eq(target_height)

112 106

end

113 107 114 -

it 'can maximize the current window', except: {window_manager: false, browser: %i[ie firefox safari]} do

108 +

it 'can maximize the current window' do

115 109

window.size = old_size = Dimension.new(700, 700)

116 110 117 111

window.maximize

@@ -122,7 +116,7 @@ module WebDriver

122 116

expect(new_size.height).to be > old_size.height

123 117

end

124 118 125 -

it 'can make window full screen', except: {window_manager: false, browser: :firefox} do

119 +

it 'can make window full screen' do

126 120

window.size = old_size = Dimension.new(700, 700)

127 121 128 122

window.full_screen

@@ -133,7 +127,7 @@ module WebDriver

133 127

expect(new_size.height).to be > old_size.height

134 128

end

135 129 136 -

it 'can minimize the window', only: {window_manager: true} do

130 +

it 'can minimize the window' do

137 131

window.minimize

138 132

expect(driver.execute_script('return document.hidden;')).to be true

139 133

end

You can’t perform that action at this time.


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