Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed Jun 1, 2015
1 parent 353e14e commit 44f7b67
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/angular_webdriver/protractor_compatability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ def xpath what
# <span ng-bind="person.email"></span>
#
# @example
# var span1 = element(by.binding('person.name'));
# expect(span1.getText()).toBe('Foo');
# span1 = element(by.binding('person.name'))
# expect(span1.text).to eq('Foo')
#
# var span2 = element(by.binding('person.email'));
# expect(span2.getText()).toBe('[email protected]');
# span2 = element(by.binding('person.email'))
# expect(span2.text.to eq('[email protected]')
#
# // You can also use a substring for a partial match
# var span1alt = element(by.binding('name'));
# expect(span1alt.getText()).toBe('Foo');
# # You can also use a substring for a partial match
# span1alt = element(by.binding('name'))
# expect(span1alt.text).to eq('Foo')
#
# // This works for sites using Angular 1.2 but NOT 1.3
# var deprecatedSyntax = element(by.binding('{{person.name}}'));
# # This works for sites using Angular 1.2 but NOT 1.3
# deprecatedSyntax = element(by.binding('{{person.name}}'))
#
# @param {string} binding_descriptor
# @param binding_descriptor <String>
# @return { binding: binding_descriptor }
def binding binding_descriptor
{ binding: binding_descriptor }
Expand All @@ -116,7 +116,7 @@ def binding binding_descriptor
# <button>Save my file</button>
#
# @example
# element(by.partialButtonText('Save'));
# element(by.partialButtonText('Save'))
#
# @param search_text <String>
# @return { partialButtonText: search_text }
Expand All @@ -130,7 +130,7 @@ def partialButtonText search_text
# <button>Save</button>
#
# @example
# element(by.buttonText('Save'));
# element(by.buttonText('Save'))
#
# @param search_text <String>
# @return {buttonText: search_text }
Expand All @@ -145,9 +145,9 @@ def buttonText search_text
# <input type="text" ng-model="person.name">
#
# @example
# var input = element(by.model('person.name'));
# input.sendKeys('123');
# expect(input.getAttribute('value')).toBe('Foo123');
# input = element(by.model('person.name'))
# input.send_keys('123')
# expect(input.value).to eq('Foo123')
#
# @param model_expression <String> ng-model expression.
def model model_expression
Expand Down

0 comments on commit 44f7b67

Please sign in to comment.