Guest User

Untitled

a guest
Nov 22nd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. i used protractor --elementExplorer to pull items from
  2. http://www.angular.io
  3. > element.all(by.css('.nav-link')).getText()
  4. [ '', 'FEATURES', 'DOCS', 'RESOURCES', 'EVENTS', 'BLOG' ]
  5.  
  6. secondspec.ts
  7. import { ElementFinder, browser, by, element } from 'protractor';
  8. describe('angulario homepage verify list', function () { //Suite in Jasmine
  9. it('should check top 5 link buttons', function () { // Test in Jasmine
  10. browser.get('https://angular.io'); // Entering application url in browser
  11. element.all(by.css('.nav-link')).getText()); {
  12. //expect statement goes here
  13.  
  14. });
  15. });
  16. });
Add Comment
Please, Sign In to add comment