You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to help us efficiently investigate your issue, please provide the following information:
Firefox Version
55.0a1 (2017-04-12) (32-bit)
geckodriver as of commit 15345b6
Platform
Windows
Steps to reproduce
Execute the following code using the Selenium .NET bindings (exact W3C WebDriver protocol commands are included as comments):
FirefoxOptions options = new FirefoxOptions();
options.LogLevel = FirefoxDriverLogLevel.Trace;
options.BrowserExecutableLocation = @"C:\Program Files (x86)\Nightly\firefox.exe";
// POST /session
// command body:
// {
// "capabilities": {
// "alwaysMatch" : {
// "browserName": "firefox",
// "acceptInsecureCerts": true,
// "moz:firefoxOptions": {
// "binary": "C:\Program Files (x86)\Nightly\firefox.exe",
// "log": {
// "level": "trace"
// }
// }
// }
// }
// }
IWebDriver driver = new FirefoxDriver(options);
// POST /session/{sessionId}/url
// Request Body: { "url": "<url to the hosted HTML file, provided below>" }
driver.Url = "<url to HTML file, provided below>";
// POST /session/{sessionId}/element
// Request Body: { "using": "css selector", "value": "option" }
ReadOnlyCollection<IWebElement> elementOptions = driver.FindElements(By.CssSelector("option"));
Actions actionBuider = new Actions(driver);
IAction selectThreeOptions = actionBuider.Click(elementOptions[1])
.KeyDown(Keys.Shift)
.Click(elementOptions[2])
.Click(elementOptions[3])
.KeyUp(Keys.Shift).Build();
// POST /session/{sessionId}/actions
// See trace log for full JSON request body.
selectThreeOptions.Perform();
Expect: The <select> element should have three <option> elements selected.
Result: Only the last <option> element is selected.
I believe this may be a larger problem with multiple input devices in the same actions end point payload. We need to make sure Control+Click and friends work too.
A minimal HTML file (or files) that can be used to reproduce the issue
I guess this could be because the shift modifier isn’t properly set on the DOM event we generate. That only the last <option> gets clicked could mean it clicks through all of them, but without the shift modifier.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.
lockbot
locked and limited conversation to collaborators
Aug 17, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In order to help us efficiently investigate your issue, please provide the following information:
Firefox Version
55.0a1 (2017-04-12) (32-bit)
geckodriver as of commit 15345b6
Platform
Windows
Steps to reproduce
Execute the following code using the Selenium .NET bindings (exact W3C WebDriver protocol commands are included as comments):
Expect: The
<select>
element should have three<option>
elements selected.Result: Only the last
<option>
element is selected.I believe this may be a larger problem with multiple input devices in the same actions end point payload. We need to make sure Control+Click and friends work too.
The text was updated successfully, but these errors were encountered: