Skip to content

Commit 1d34bbf

Browse files
chore(deps): update dependency selenium-devtools to v0.123.0 (#1630)
* chore(deps): update dependency selenium-devtools to v0.123.0 * Fixing text for ubuntu It should work in all OSs * Waiting until both files are downloaded. * Fixing error syntax * Using file name --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Diego Molina <[email protected]> Co-authored-by: Diego Molina <[email protected]>
1 parent e157522 commit 1d34bbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/ruby/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ GEM
5151
rubocop-factory_bot (~> 2.22)
5252
ruby-progressbar (1.13.0)
5353
rubyzip (2.3.2)
54-
selenium-devtools (0.122.0)
54+
selenium-devtools (0.123.0)
5555
selenium-webdriver (~> 4.2)
5656
selenium-webdriver (4.19.0)
5757
base64 (~> 0.2)

examples/ruby/spec/drivers/remote_webdriver_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
driver.get('https://www.selenium.dev/selenium/web/downloads/download.html')
4848
driver.find_element(id: 'file-1').click
4949
driver.find_element(id: 'file-2').click
50-
wait.until { driver.downloadable_files.include? 'file_2.jpg' }
50+
wait.until { driver.downloadable_files.include?('file_2.jpg') && driver.downloadable_files.include?('file_1.txt') }
5151

5252
files = driver.downloadable_files
5353

5454
expect(files.sort).to eq file_names.sort
55-
downloadable_file = files.first
55+
downloadable_file = 'file_1.txt'
5656

5757
driver.download_file(downloadable_file, target_directory)
5858

0 commit comments

Comments
 (0)