Skip to content

Commit

Permalink
chrome debug
Browse files Browse the repository at this point in the history
  • Loading branch information
apricot13 committed Sep 5, 2024
1 parent 249942f commit bd60afd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# heroku buildpacks gives us GOOGLE_CHROME_BIN
binary = ENV.fetch("GOOGLE_CHROME_BIN", nil)
# "/usr/bin/chromium-browser"
# puts binary
puts binary
# uncomment to enable webdriver debugging
# logger = Selenium::WebDriver.logger
# logger.level = :debug
logger = Selenium::WebDriver.logger
logger.level = :debug

Selenium::WebDriver::Chrome.path = binary if binary

Expand Down Expand Up @@ -50,7 +50,7 @@
Capybara::Selenium::Driver.new app,
browser: :chrome,
options: options,
service: Selenium::WebDriver::Chrome::Service.chrome(log: :stderr, args: ["--whitelisted-ips=", "--allowed-ips=", "--disable-dev-shm-usage"])
service: Selenium::WebDriver::Chrome::Service.chrome(log: :stderr, args: ["--whitelisted-ips=", "--allowed-ips=", "--disable-dev-shm-usage", "--log-level=DEBUG"])
end
# switch to this to enable chrome debugging
# service: Selenium::WebDriver::Chrome::Service.chrome(log: :stderr, args: ["--whitelisted-ips=", "--allowed-ips=", "--disable-dev-shm-usage", "--log-level=DEBUG"])
Expand Down

0 comments on commit bd60afd

Please sign in to comment.