This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(syntax): big syntax reboot, expose global $, $$, element, and by
In an effort to make tests more readable and clear, a few more global variables will now be exported. `browser` is an instance of protractor. This was previously accessed using `protractor.getInstance`. `by` is a collection of element locators. Previously, this was `protractor.By`. `$` is a shortcut for getting elements by css. `$('.foo')` === `element(by.css('.foo'))` All changes should be backwards compatible, as tested with the new 'backwardscompat' tests. Closes #156.
- Loading branch information
Showing
17 changed files
with
830 additions
and
36 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
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// The main suite of Protractor tests. | ||
exports.config = { | ||
seleniumServerJar: './selenium/selenium-server-standalone-2.35.0.jar', | ||
chromeDriver: './selenium/chromedriver', | ||
|
||
seleniumAddress: 'http://localhost:4444/wd/hub', | ||
|
||
// Spec patterns are relative to this directory. | ||
specs: [ | ||
'backwardscompat/*_spec.js' | ||
], | ||
|
||
capabilities: { | ||
'browserName': 'chrome' | ||
}, | ||
|
||
baseUrl: 'http://localhost:8000', | ||
|
||
params: { | ||
login: { | ||
user: 'Jane', | ||
password: '1234' | ||
} | ||
} | ||
}; |
Oops, something went wrong.