Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/eyes.protractor
Applitools Eyes SDK For Protactor
https://github.com/applitools/eyes.protractor
Last synced: about 2 months ago
JSON representation
Applitools Eyes SDK For Protactor
- Host: GitHub
- URL: https://github.com/applitools/eyes.protractor
- Owner: applitools
- License: apache-2.0
- Created: 2014-07-17T12:14:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-13T14:56:23.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T04:52:38.680Z (9 months ago)
- Language: JavaScript
- Size: 86.9 KB
- Stars: 7
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED
This repository is available for legacy purposes. Please use https://github.com/applitools/Eyes.Selenium.JavaScript instead.
Eyes.Protractor
==========================Applitools Eyes SDK For Protactor
Example:
__________________________Change this example:
```javascript
describe('angularjs homepage', function() {
it('should add one and two', function() {
browser.get('http://juliemr.github.io/protractor-demo/');
element(by.model('first')).sendKeys(1);
element(by.model('second')).sendKeys(2);
element(by.id('gobutton')).click();
expect(element(by.binding('latest')).getText()).
toEqual('3');
});
});
```To this:
```javascript
var Eyes = require('eyes.protractor').Eyes;
var eyes = new Eyes();
eyes.setApiKey("");describe('angularjs homepage', function() {
it('should add one and two', function() {
eyes.open(browser, "JavaScript SDK", "Simple Protractor Test");
browser.get('http://juliemr.github.io/protractor-demo/');
eyes.checkWindow("Demo start");
element(by.model('first')).sendKeys(1);
element(by.model('second')).sendKeys(2);
eyes.checkWindow("Input Ready");
element(by.id('gobutton')).click();
eyes.checkWindow("Result");expect(element(by.binding('latest')).getText()).
toEqual('3');eyes.close();
});
});```
Note: older Protractor versions may require passing ```protractor.getInstance().driver``` instead of ```browser``` to ```eyes.open()```