-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium2TestCase->execute() not very obvious #160
Comments
The annotations are incorrect and are now fixed. All the implemented functionalities are documented in the unit tests, like here: |
Anyone know why I get this exception when trying to use the execute method? error given: I suspect it has something to do with the proper classes not being included, but I was under the impression that they were included because I am able to run other Selenium commands just fine. |
Which class are you extending? |
I'm using yii. Which I finally discovered had an abstract class extending
|
Glad this was solved for you |
I tried to execute some JavaScript in my page and therefore the
execute()
method, as it is described in v1.2.7:This made me write:
This led to exceptions about invalid JSON parameters. Parameters should be an arry, so I changed my code to
This worked in PHPUnit, but made Selenium crash because it couldn't convert the list to a map. After (finally) consuling the WireProtocol, it was clear that I had to write
Now the JavaScript is executed, but directly followed by another exception in Selenium. It turns out that I must define the arguments, even if there are none.
Was I supposed to know that all magic GenericPost commands need to have a proper params array that I have to get from the WireProtocol specs? Is this just an oversight? Is this implementation simply not yet finished and therefore no dedicated command class exists?
The text was updated successfully, but these errors were encountered: