Hi there,
None of the selenium commands work when running the integration tests with
the chromedriver, but they work flawlessly with the firefox webdriver.
I tried doubleclick and draganddropby commands.
interact {
doubleClick(centerClickable)
}
(centerclickable is a content, selecting on ".vis-drag-center"
I also tried to call
def driver = browser.getDriver()
Actions action = new Actions(driver)
WebElement element= driver.findElement(By.className("vis-drag-center"))
def doubleclick = action.doubleClick(element).build()
doubleclick.perform()
Again, this works with the firefox driver, not the chrome driver.
This leads me to believe maybe some settings are wrong? Or chromedriver
requires some additional options/setup I don't know about?
Here's some stuff from the GebConfig.groovy file we use when running the
integration tests locally. We're using WebDriverManager
import io.github.bonigarcia.wdm.WebDriverManager
import org.openqa.selenium.Dimension
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxOptions
def chromeWebDriverVersion = '70.0.3538.67'
def driverFirefox = {
WebDriverManager.firefoxdriver().setup()
def driver = new FirefoxDriver()
driver.manage().window().setSize(new Dimension(width, height))
return driver
}
// ChromeDriver reference:
https://sites.google.com/a/chromium.org/chromedriver/
// Download and configure ChromeDriver using
https://github.com/bonigarcia/webdrivermanager
def driverChrome = {
WebDriverManager.chromedriver().version(chromeWebDriverVersion).setup()
def driver = new ChromeDriver()
driver.manage().window().setSize(new Dimension(width, height))
return driver
}
environments {
firefox {
driver = driverFirefox
}
chrome {
driver = driverChrome
}
//driver = driverFirefox
driver = driverChrome
Does anyone have any idea?
Also tried with chrome version 2.43
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/1228a14e-390e-4218-8cbc-ee9c369b88b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.