As of now, I need to disable w3c mode within my passed in chromeOptions in order to avoid errors that occur when I use .send_keys(). It seems that the latest versions of chrome/chromedriver do not support command sendKeysToActiveElement. I'm going to start here: https://chromium.googlesource.com/chromium/src/+/master/docs/chromedriver_status and see if i can submit a PR for this.
Hound.start_session(
metadata: metadata,
additional_capabilities: %{
javascriptEnabled: true,
chromeOptions: %{
"args" => [
"--user-agent=#{
Hound.Browser.user_agent(:chrome) |> Hound.Metadata.append(metadata)
}",
"--headless",
"--disable-gpu"
],
"w3c" => false
}
}
)
Background
As of now, I need to disable w3c mode within my passed in chromeOptions in order to avoid errors that occur when I use
.send_keys(). It seems that the latest versions of chrome/chromedriver do not support command sendKeysToActiveElement. I'm going to start here: https://chromium.googlesource.com/chromium/src/+/master/docs/chromedriver_status and see if i can submit a PR for this.Workaround
(not sure how long this will last so I'd like to fix as soon as possible)