File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2323 user_data_dir = Dir . mktmpdir ( 'chrome-profile-' )
2424 options = Selenium ::WebDriver ::Options . chrome
2525 options . add_argument ( "--user-data-dir=#{ user_data_dir } " )
26+ options . add_argument ( '--no-sandbox' )
27+ options . add_argument ( '--disable-dev-shm-usage' )
2628
2729 options . binary = chrome_location
2830
Original file line number Diff line number Diff line change 1919 user_data_dir = Dir . mktmpdir ( 'chrome-profile-' )
2020 options = Selenium ::WebDriver ::Options . chrome ( binary : browser_path )
2121 options . add_argument ( "--user-data-dir=#{ user_data_dir } " )
22- options . add_argument ( " --no-sandbox" )
23- options . add_argument ( " --disable-dev-shm-usage" )
22+ options . add_argument ( ' --no-sandbox' )
23+ options . add_argument ( ' --disable-dev-shm-usage' )
2424 service = Selenium ::WebDriver ::Service . chrome
2525
2626 service . executable_path = driver_path
You can’t perform that action at this time.
0 commit comments