Skip to content

Commit

Permalink
re-adding focus methods
Browse files Browse the repository at this point in the history
  • Loading branch information
admc committed Feb 16, 2011
1 parent dbfb807 commit 4def603
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion extension/chrome/content/extensions/extension-flexpilot.js
Expand Up @@ -119,6 +119,10 @@ Selenium.prototype.doFlexSelect = function(locator, options) {
this.flex("fp_select", locator, options);
};

Selenium.prototype.doFlexFocusOut = function(locator, options) {
this.flex("fp_focusOut", locator, options);
};

//x.doFlashDragDropElemToElem("id=devMovie", "chain=name:dragSprite", "optchain=id:subPanel")
//{chain:"name:dragSprite", optchain:"name:testTextArea"}
Selenium.prototype.doFlexDragDropElemToElem = function(locator, options) {
Expand Down Expand Up @@ -189,7 +193,11 @@ try {
RemoteSelenium.prototype.doFlexSelect = function(locator, options) {
return this.doCommand("flexSelect", [locator, options], this.handleResults);
};


RemoteSelenium.prototype.doFlexFocusOut = function(locator, options) {
return this.doCommand("flexFocusOut", [locator, options], this.handleResults);
};

RemoteSelenium.prototype.doFlexDragDropElemToElem = function(locator, options) {
return this.doCommand("flexDragDropElemToElem", [locator, options], this.handleResults);
};
Expand Down
10 changes: 9 additions & 1 deletion user-extensions.js
Expand Up @@ -119,6 +119,10 @@ Selenium.prototype.doFlexSelect = function(locator, options) {
this.flex("fp_select", locator, options);
};

Selenium.prototype.doFlexFocusOut = function(locator, options) {
this.flex("fp_focusOut", locator, options);
};

//x.doFlashDragDropElemToElem("id=devMovie", "chain=name:dragSprite", "optchain=id:subPanel")
//{chain:"name:dragSprite", optchain:"name:testTextArea"}
Selenium.prototype.doFlexDragDropElemToElem = function(locator, options) {
Expand Down Expand Up @@ -189,7 +193,11 @@ try {
RemoteSelenium.prototype.doFlexSelect = function(locator, options) {
return this.doCommand("flexSelect", [locator, options], this.handleResults);
};


RemoteSelenium.prototype.doFlexFocusOut = function(locator, options) {
return this.doCommand("flexFocusOut", [locator, options], this.handleResults);
};

RemoteSelenium.prototype.doFlexDragDropElemToElem = function(locator, options) {
return this.doCommand("flexDragDropElemToElem", [locator, options], this.handleResults);
};
Expand Down

0 comments on commit 4def603

Please sign in to comment.