geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Keys.SHIFT not working for select

Open joerg1985 opened this issue 5 years ago • 0 comments

The Keys.SHIFT is not working for multi select after upgrading to Firefox 83.0 (64-Bit). The provided code should select entries test1 to test7, worked fine using Firefox 81.0 (64-Bit).

System

  • Version: 0.28.0
  • Platform: Windows 10
  • Firefox: 83.0 (64-Bit)
  • Selenium: 3.141.59

Testcase

Java code

           Actions actions = new Actions(driver);
            actions.click(driver.findElement(By.id("o1"))).pause(100)
                    .keyDown(Keys.SHIFT).pause(100)
                    .click(driver.findElement(By.id("o7"))).pause(100)
                    .keyUp(Keys.SHIFT)
                    .perform();

HTML

    <select multiple style="width: 100px; height: 140px">
        <option id="o0">test0</option>
        <option id="o1">test1</option>
        <option id="o2">test2</option>
        <option id="o3">test3</option>
        <option id="o4">test4</option>
        <option id="o5">test5</option>
        <option id="o6">test6</option>
        <option id="o7">test7</option>
        <option id="o8">test8</option>
    </select>

Stacktrace

N/A

joerg1985 avatar Dec 09 '20 13:12 joerg1985