Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i used protractor --elementExplorer to pull items from
- http://www.angular.io
- > element.all(by.css('.nav-link')).getText()
- [ '', 'FEATURES', 'DOCS', 'RESOURCES', 'EVENTS', 'BLOG' ]
- secondspec.ts
- import { ElementFinder, browser, by, element } from 'protractor';
- describe('angulario homepage verify list', function () { //Suite in Jasmine
- it('should check top 5 link buttons', function () { // Test in Jasmine
- browser.get('https://angular.io'); // Entering application url in browser
- element.all(by.css('.nav-link')).getText()); {
- //expect statement goes here
- });
- });
- });
Add Comment
Please, Sign In to add comment