Difference between revisions of "IT-SDK-Protractor"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(Initial)
Line 1: Line 1:
 
=Initial=
 
=Initial=
* src: protractortest.org/#/tutorial
+
* src: http://protractortest.org/#/tutorial
 +
* src: http://jasmine.github.io/
 +
* src: https://devhints.io/jasmine
 +
 
 
=Browser=
 
=Browser=
 
src: https://github.com/angular/protractor/blob/master/docs/browser-setup.md#using-headless-chrome
 
src: https://github.com/angular/protractor/blob/master/docs/browser-setup.md#using-headless-chrome

Revision as of 00:27, 24 July 2020

Initial

Browser

src: https://github.com/angular/protractor/blob/master/docs/browser-setup.md#using-headless-chrome

browserName: 'chrome',
chromeOptions: {args: [ "--headless", "--disable-gpu", "--window-size=1100,800" ]},

Element

By

- by.css
- by.xpath
- by.partialLinkText
- by.name
- by.tagName
- by.cssContainingText
- by.className

##

src:

browser.findElement(by.name('dog_name'));
element(##).
- 

Expect

- expect($ELEMENT).toBe($VALUE);