File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 51
51
browser_options . args << '--headless'
52
52
browser_options . args << '--disable-gpu'
53
53
browser_options . args << '--window-size=1920,1080'
54
+ browser_options . args << '--disable-backgrounding-occluded-windows'
54
55
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
55
56
end
56
57
Capybara . register_driver :selenium_chrome_headless_docker_friendly do |app |
60
61
# Sandbox cannot be used inside unprivileged Docker container
61
62
browser_options . args << '--no-sandbox'
62
63
browser_options . args << '--window-size=1240,1400'
64
+ browser_options . args << '--disable-backgrounding-occluded-windows'
63
65
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
64
66
end
65
67
Capybara . javascript_driver = ( ENV [ 'CAPYBARA_DRIVER' ] || :selenium_chrome_headless ) . to_sym
Original file line number Diff line number Diff line change 58
58
browser_options . args << '--headless'
59
59
browser_options . args << '--disable-gpu'
60
60
browser_options . args << '--window-size=1920,1080'
61
+ browser_options . args << '--disable-backgrounding-occluded-windows'
61
62
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
62
63
end
63
64
Capybara . register_driver :selenium_chrome_headless_docker_friendly do |app |
67
68
# Sandbox cannot be used inside unprivileged Docker container
68
69
browser_options . args << '--no-sandbox'
69
70
browser_options . args << '--window-size=1240,1400'
71
+ browser_options . args << '--disable-backgrounding-occluded-windows'
70
72
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
71
73
end
72
74
Original file line number Diff line number Diff line change 54
54
browser_options . args << '--headless'
55
55
browser_options . args << '--disable-gpu'
56
56
browser_options . args << '--window-size=1920,1080'
57
+ browser_options . args << '--disable-backgrounding-occluded-windows'
57
58
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
58
59
end
59
60
Capybara . register_driver :selenium_chrome_headless_docker_friendly do |app |
63
64
# Sandbox cannot be used inside unprivileged Docker container
64
65
browser_options . args << '--no-sandbox'
65
66
browser_options . args << '--window-size=1240,1400'
67
+ browser_options . args << '--disable-backgrounding-occluded-windows'
66
68
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
67
69
end
68
70
Original file line number Diff line number Diff line change 80
80
browser_options . args << '--headless'
81
81
browser_options . args << '--disable-gpu'
82
82
browser_options . args << '--window-size=1920,1080'
83
+ browser_options . args << '--disable-backgrounding-occluded-windows'
83
84
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
84
85
end
85
86
90
91
# Sandbox cannot be used inside unprivileged Docker container
91
92
browser_options . args << '--no-sandbox'
92
93
browser_options . args << '--window-size=1240,1400'
94
+ browser_options . args << '--disable-backgrounding-occluded-windows'
93
95
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
94
96
end
95
97
You can’t perform that action at this time.
0 commit comments