Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 90efe10

Browse files
committed
Gave constructors better names.
1 parent 68f6ef5 commit 90efe10

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

protractor.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ exports.wrapDriver = function(webdriver) {
6464
};
6565
};
6666

67-
var By = function() {}
68-
var ByWrapper = function() {};
69-
ByWrapper.prototype = require('selenium-webdriver').By;
67+
var ProtractorBy = function() {}
68+
var WebdriverBy = function() {};
69+
WebdriverBy.prototype = require('selenium-webdriver').By;
7070

71-
util.inherits(By, ByWrapper);
71+
util.inherits(ProtractorBy, WebdriverBy);
7272

73-
By.prototype.binding = function() {
73+
ProtractorBy.prototype.binding = function() {
7474
return {
7575
using: 'js',
7676
value: function() {
@@ -88,26 +88,26 @@ By.prototype.binding = function() {
8888
};
8989
};
9090

91-
By.prototype.select = function(model) {
91+
ProtractorBy.prototype.select = function(model) {
9292
return {
9393
using: 'css selector',
9494
value: 'select[ng-model=' + model + ']'
9595
};
9696
};
9797

98-
By.prototype.selectedOption = function(model) {
98+
ProtractorBy.prototype.selectedOption = function(model) {
9999
return {
100100
using: 'css selector',
101101
value: 'select[ng-model=' + model + '] option[selected]'
102102
};
103103
};
104104

105-
By.prototype.input = function(model) {
105+
ProtractorBy.prototype.input = function(model) {
106106
return {
107107
using: 'css selector',
108108
value: 'input[ng-model=' + model + ']'
109109
};
110110
}
111-
By.prototype.repeater = null;
111+
ProtractorBy.prototype.repeater = null;
112112

113-
exports.By = new By();
113+
exports.By = new ProtractorBy();

0 commit comments

Comments
 (0)