Show Menu
Cheatography

Protractor Cheat Sheet (DRAFT) by

Protractor for AngularJS

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Element Selectors

protractor.By
protractor.By.binding
protractor.By.select
protractor.By.selectedOption
protractor.By.input
protractor.By.repeater
protractor.By.className
protractor.By.class name
protractor.By.css
protractor.By.id
protractor.By.js
protractor.By.linkText
protractor.By.link text
protractor.By.name
protractor.By.partialLinkText
protractor.By.partial link text
protractor.By.tagName
protractor.By.tag name
protractor.By.xpath
 

Browser Commands

browse­r.c­ont­rolFlow
browse­r.s­chedule
browse­r.g­etS­ession
browse­r.g­etC­apa­bility
browse­r.quit
browse­r.a­ctions
browse­r.e­xec­ute­Script
browse­r.e­xec­ute­Asy­ncS­cript
browse­r.call
browse­r.wait
browse­r.sleep
browse­r.g­etW­ind­owH­andle
browse­r.g­etA­llW­ind­owH­andles
browse­r.g­etP­age­Source
browse­r.close
browse­r.g­etC­urr­entUrl
browse­r.g­etTitle
browse­r.f­ind­Dom­Ele­ment_
browse­r.i­sEl­eme­ntP­resent
browse­r.t­ake­Scr­eenshot
browse­r.m­anage
browse­r.n­avigate
browse­r.s­witchTo
browse­r.d­river
browse­r.b­aseUrl
browse­r.m­odu­leN­ames_
browse­r.m­odu­leS­cripts_
browse­r.w­ait­For­Angular
browse­r.f­ind­Element
browse­r.f­ind­Ele­ments
browse­r.a­ddM­ock­Module
browse­r.c­lea­rMo­ckM­odules
browse­r.get