Skip to content

Headless chromedriver "unknown error: 'value' must be a list" during the WebElement.SendKeys() invocation #199

Description

@boom-bang

Hi guys,
Hope you are doing well!

I discovered an issue with chromedriver to arise when invoking the .SendKeys() function on a headless chrome. The headless mode works good btw.

How I do pass the --headless option

chrCaps := chrome.Capabilities{
	Args: []string{
		"--window-size=1200,1100",
		"--headless",
		"--no-sandbox",
	},
	W3C: true,
}
caps.AddChrome(chrCaps)
wd, err := selenium.NewRemote(caps, fmt.Sprintf("http://localhost:%d/wd/hub", port))
if err != nil {
    panic(err)
}

Environment
Chrome: 81.0.4044.138

Everything works well without using the headless mode by the way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions