Skip to content

Commit

Permalink
setting the selenium dependency version to 4.23.0 to allow adding htm…
Browse files Browse the repository at this point in the history
…lunit3-driver of that version. Advices way of running the integration tests is `gradlew integrationTest Dgeb.env=htmlUnit`.
  • Loading branch information
Dierk Koenig committed Oct 3, 2024
1 parent fda8138 commit ed56466
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 8 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ configurations {
all {
resolutionStrategy.eachDependency { DependencyResolveDetails details->
if (details.requested.group == 'org.seleniumhq.selenium') {
details.useVersion('4.19.1')
details.useVersion('4.23.0')
}
}
}
Expand Down Expand Up @@ -56,15 +56,14 @@ dependencies {
testImplementation("org.grails:grails-gorm-testing-support")
testImplementation("org.grails:grails-web-testing-support")
testImplementation("org.grails.plugins:geb")
// next line added
implementation group: 'org.seleniumhq.selenium', name: 'selenium-safari-driver', version: '4.25.0'
testImplementation("org.seleniumhq.selenium:selenium-api:4.19.1")
testImplementation("org.seleniumhq.selenium:selenium-remote-driver:4.19.1")
testImplementation("org.seleniumhq.selenium:selenium-support:4.19.1")
testImplementation("org.seleniumhq.selenium:selenium-api:4.23.0")
testImplementation("org.seleniumhq.selenium:selenium-remote-driver:4.23.0")
testImplementation("org.seleniumhq.selenium:selenium-support:4.23.0")
testImplementation("org.spockframework:spock-core")
testRuntimeOnly("org.seleniumhq.selenium:selenium-chrome-driver:4.19.1")
testRuntimeOnly("org.seleniumhq.selenium:selenium-firefox-driver:4.19.1")
testRuntimeOnly("org.seleniumhq.selenium:selenium-safari-driver:4.19.1")
testRuntimeOnly("org.seleniumhq.selenium:selenium-chrome-driver:4.23.0")
testRuntimeOnly("org.seleniumhq.selenium:selenium-firefox-driver:4.23.0")
testRuntimeOnly("org.seleniumhq.selenium:selenium-safari-driver:4.23.0")
testRuntimeOnly("org.seleniumhq.selenium:htmlunit3-driver:4.23.0")
testImplementation("io.micronaut:micronaut-http-client")

}
Expand Down
6 changes: 5 additions & 1 deletion src/integration-test/resources/GebConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxOptions
import org.openqa.selenium.safari.SafariDriver
import org.openqa.selenium.htmlunit.HtmlUnitDriver

environments {

htmlUnit {
driver = { new HtmlUnitDriver() }
}

// You need to configure in Safari -> Develop -> Allowed Remote Automation
// dk: disabled for the moment
safari {
driver = { new SafariDriver() }
}
Expand Down

0 comments on commit ed56466

Please sign in to comment.