Skip to content

Commit

Permalink
Fixing select formatters for non-Java languages. Fixes issue 6622
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 27, 2013
1 parent 2e10f92 commit 79c582d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ide/plugins/csharp-format/src/content/formats/cs-wd.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ WDAPI.Element.prototype.submit = function() {
return this.ref + ".Submit()";
};

WDAPI.Element.prototype.select = function(label) {
WDAPI.Element.prototype.select = function(selectLocator) {
if (selectLocator.type == 'index') {
return "new SelectElement(" + this.ref + ").SelectByIndex(" + selectLocator.string + ")";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ WDAPI.Element.prototype.submit = function() {
return this.ref + ".submit()";
};

WDAPI.Element.prototype.select = function(label) {
WDAPI.Element.prototype.select = function(selectLocator) {
if (selectLocator.type == 'index') {
return "Select(" + this.ref + ").select_by_index(" + selectLocator.string + ")";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ WDAPI.Element.prototype.submit = function() {
return this.ref + ".submit";
};

WDAPI.Element.prototype.select = function(label) {
WDAPI.Element.prototype.select = function(selectLocator) {
if (selectLocator.type == 'index') {
return "Selenium::WebDriver::Support::Select.new(" + this.ref + ").select_by(:index, " + selectLocator.string + ")";
}
Expand Down
2 changes: 1 addition & 1 deletion ide/plugins/ruby-format/src/content/formats/ruby-wd.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ WDAPI.Element.prototype.submit = function() {
return this.ref + ".submit";
};

WDAPI.Element.prototype.select = function(label) {
WDAPI.Element.prototype.select = function(selectLocator) {
if (selectLocator.type == 'index') {
return "Selenium::WebDriver::Support::Select.new(" + this.ref + ").select_by(:index, " + selectLocator.string + ")";
}
Expand Down

0 comments on commit 79c582d

Please sign in to comment.