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
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
This patch creates a commandType 'util' which can be linked to a function
to be executed when the command is selected from the right-click menu.
Extensions can use the following command to register this execute callback
function.
CommandBuilders.add('util', MyExtension.prepareCommand,
MyExtension.executeCommand);
MyExtension.executeCommand will be called when the user selects the
command. The execute function can also return an array containing zero or
more commands to be added to the current test case.
As an example, I have included an extension containing two commands
(tableUtilCommandBuilders.js). One generates verifyTable commands for the
row clicked on and the other that generates verifyTable commands for the
entire table.
Let me know what you think.
The implementation looks very good, beautiful code, and the sample is easy to follow.
I logged an issue #1073 which request exactly same feature. And after Samit point me
to this patch, I was able to use this enhancement with local changes, and it works
great!
To test this, I deployed the overlay and command builder changes into local IDE source
folder, along with sample implementation, I was was able to see it in action. I tried
both verifyTable and verifyRow, and they all looks good. I'm not sure what
other testing are required, but from what I can tell the patch works fine. Since
the executeCommand support empty, single, or multiple commands, I think it is more
powerful than just support one command execution.
In addition, I leveraged this patch to handle issue #1073 I initially reported. The
end result is excellent! I was able to tie-in my customer command and execution action
with 5 minutes work :)
Please promote this patch to IDE for future release, it will be very useful for other
users if they happen run into similar situations.
Thank you!
Chris
Originally reported on Google Code with ID 442
Reported by
Samit.Badle
on 2010-03-31 16:09:17- _Attachment: [UtilCommands.diff](https://storage.googleapis.com/google-code-attachments/selenium/issue-442/comment-0/UtilCommands.diff)_ - _Attachment: [tableUtilCommandBuilders.js](https://storage.googleapis.com/google-code-attachments/selenium/issue-442/comment-0/tableUtilCommandBuilders.js)_
The text was updated successfully, but these errors were encountered: