Skip to content

Selecting multiple <option> from a <select multiple> #359

Open
@ctrlaltca

Description

@ctrlaltca

I have some old tests ported from SeleniumTestCase to Selenium2TestCase (btw, here's a small class i've created to make the porting easier: https://github.com/pradosoft/prado/blob/master/tests/test_tools/PradoGenericSelenium2Test.php ).
In the old tests i used addSelection() in order to select an <option> in a <select multiple> element without deselecting the currently selected items.
Such method doesn't exists in Selenium2TestCase, and googling around i saw that the current way to do this is something like:

keyPress(CONTROL);
element->click();
keyRelease(CONTROL);

If i'm not mistaken, in Selenium2TestCase no such keyPress/KeyRelease method exists, too.
So, is there a way to accomplish what i'm trying to do?

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