I have the same problem, Selenium 2.0b2 and following code,
is it supposed to work ?
Keyboard keyboard = ((HasInputDevices) driver).getKeyboard();
keyboard.pressKey(Keys.SHIFT);
List<WebElement> selectOptions =
selectElement.findElements(By.tagName("option"));
selectOptions.get(1).click();
selectOptions.get(3).click();
keyboard.releaseKey(Keys.SHIFT)
On 8 bře, 17:02, Zihao Yu <
zihao...@gmail.com> wrote:
> Hi all. I'm trying to use DefaultActionChainsGenerator class to perform
> a series of operations:
>
> ActionChainsGenerator generator = new DefaultActionChainsGenerator(driver);
> generator.keyDown(Keys.CONTROL);
> for (WebElement e: elements) {
> generator.click(e);}
>
> generator.keyUp(Keys.CONTROL);
> Action action = generator.build();
> action.perform();
>
> Basically I am trying to select multiple elements by holding down CTRL
> and clicking each of them. I got the following exception:
>
> *java.lang.UnsupportedOperationException: Unrecognized command: POST
> /session/00f1f3e8-027a-4974-877e-00f529945383/modifier*