-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
353e14e
commit 44f7b67
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 } | ||
|
@@ -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 } | ||
|
@@ -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 } | ||
|
@@ -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 | ||
|