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
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:
I've tried using keys() to send CONTROL and COMMAND before calling click(), but it doesn't seems to work; i suppose the key gets released before the click starts.
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:
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?
The text was updated successfully, but these errors were encountered: