-
Notifications
You must be signed in to change notification settings - Fork 210
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
Port sideflow.js to also support Maven Selenium Plugin's selenese goal #12
Comments
So the problem here is that this script is written to work only for the Selenium IDE and not the Selenium RC. Good news is that it can be modified to work under both run-times environments and I'm in the middle of it. As it turns out the script is a bit old too and is still accessing the deprecated testCase variable of the Slenium IDE window instead of invoking Application.prototype.getTestCase(). I'll fix that as well... |
So far so good... I was able to implement the loop that initializes that custom commands inside Selenium.prototype.initialiseLabels() for Selenium RC. It will end up looking something like:
That's tested and working now is time to move on to implementing the commands themselves. I see the extensive use of testCase.debugContext.debugIndex but the TestCase object is not available in Selenium RC so this might end up having to be forked inside an if as well and implemented in a second different way too to support Selenium RC and its Selenese scripts. That's for tomorrow... |
I ended up refactoring most of the script and implemented the OOP Selenium's way. I have tested it given your demos and my own scripts in both the Selenium IDE and Maven Selenium Plugin. Feel free to test and accept the PR at your leisure. |
…nese" * Refactored the script and adopted Selenium's OOP way of doing things * Ported the script to support the Maven Selenium Plugin's selenese target
…nese" * Fixed SideFlow.initialize() for command loop in the IDE not to fall through the RC for comments
…nese" * Fixed SideFlow.initialize() and how the testFrame changes on page re-load for Selenium RC in Selenium Maven Plugin * Fixed the while loop off by a row bug * Refactored some of the undefined checks to also check for isNaN()
When the sideflow.js is added to the user-extensions.js for the Selenium Maven Plugin to run the Selenese HTML test suit, the script breaks inside initialiseLabels() as the testCase is not defined in this environment.
For Selenium Maven Plugin documentation see:
http://mojo.codehaus.org/selenium-maven-plugin/selenese-mojo.html
A code snippet I've been using in my POM:
I'm researching into a fix and will provide a PR if I find out...
The text was updated successfully, but these errors were encountered: