Skip to content

Commit

Permalink
disable block cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi77Qi committed Jul 7, 2020
1 parent 2132a35 commit 836a1d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ trait WebBrowserSpec extends WebBrowserUtil with ExceptionHandling with LazyLogg
// Note that download.prompt_for_download will be ignored if download.default_directory is invalid or doesn't exist
options.setExperimentalOption(
"prefs",
Map("download.default_directory" -> fullDownloadPath, "download.prompt_for_download" -> "false").asJava
Map(
"download.default_directory" -> fullDownloadPath,
"download.prompt_for_download" -> "false",
"profile.default_content_settings.cookies" -> 1,
"profile.block_third_party_cookies" -> false
).asJava
)

// ChromeDriver log
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.broadinstitute.dsde.workbench.service.test

import java.time.Duration
import org.openqa.selenium.support.ui.WebDriverWait
import org.openqa.selenium.{StaleElementReferenceException, WebDriver}
import org.scalatestplus.selenium.WebBrowser
Expand Down

0 comments on commit 836a1d7

Please sign in to comment.