File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ services:
46
46
selenium :
47
47
image : selenium/standalone-chrome
48
48
# image: selenium/standalone-chrome:4.10.0
49
- environment :
50
- # - SE_OTEL_SERVICE_NAME="selenium-standalone"
51
- # - SE_ENABLE_TRACING=false
49
+ # environment:
50
+ # - SE_OTEL_SERVICE_NAME="selenium-standalone"
51
+ # - SE_ENABLE_TRACING=false
52
52
ports :
53
53
- 4444:4444
54
54
- 7900:7900
@@ -59,11 +59,13 @@ services:
59
59
- selenium.test
60
60
shm_size : 2g
61
61
volumes :
62
- - downloads:/home/seluser/Downloads
62
+ # - downloads:/home/seluser/Downloads
63
+ - downloads:/tmp
63
64
64
65
volumes :
65
66
downloads :
66
67
67
68
# https://github.com/SeleniumHQ/docker-selenium/issues/2423
68
69
# https://github.com/SeleniumHQ/docker-selenium?tab=readme-ov-file#standalone
69
70
# https://www.selenium.dev/blog/2023/headless-is-going-away/
71
+ # https://stackoverflow.com/questions/60687310/test-in-docker-selenium-can-download-file-when-running-locally-but-not-on-jenkin
Original file line number Diff line number Diff line change 12
12
# find('#downloads-button').click
13
13
# end
14
14
15
- it_behaves_like 'export geofile' , 'berkeley-s7038h-shapefile.zip' , 'Export Shapefile'
16
- it_behaves_like 'export geofile' , 'berkeley-s7038h-kmz.kmz' , 'Export KMZ'
17
- it_behaves_like 'export geofile' , 'berkeley-s7038h-geojson.json' , 'Export GeoJSON'
15
+ it_behaves_like 'export geofile to local ' , 'berkeley-s7038h-shapefile.zip' , 'Export Shapefile'
16
+ it_behaves_like 'export geofile to local ' , 'berkeley-s7038h-kmz.kmz' , 'Export KMZ'
17
+ it_behaves_like 'export geofile to local ' , 'berkeley-s7038h-geojson.json' , 'Export GeoJSON'
18
18
# after do
19
19
# # FileUtils.rm_f(zip_file_path)
20
20
# FileUtils.rm_f(shapefile_zip_file_path)
Original file line number Diff line number Diff line change 29
29
# ]
30
30
chrome_prefs = {
31
31
'download.prompt_for_download' => false ,
32
- 'download.default_directory' => '/home/seluser/Downloads' ,
32
+ # 'download.default_directory' => '/home/seluser/Downloads',
33
+ 'download.default_directory' => '/tmp' ,
33
34
'download.directory_upgrade' => true
34
35
}
35
36
You can’t perform that action at this time.
0 commit comments