Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Created July 4, 2013 09:52
Show Gist options
  • Save JamieMason/5926391 to your computer and use it in GitHub Desktop.
Save JamieMason/5926391 to your computer and use it in GitHub Desktop.
Methods available to you in a Jasmine test using https://github.com/juliemr/protractor/
protractor.wrapDriver
protractor.setInstance
protractor.getInstance
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
var browser = protractor.getInstance();
browser.controlFlow
browser.schedule
browser.getSession
browser.getCapability
browser.quit
browser.actions
browser.executeScript
browser.executeAsyncScript
browser.call
browser.wait
browser.sleep
browser.getWindowHandle
browser.getAllWindowHandles
browser.getPageSource
browser.close
browser.getCurrentUrl
browser.getTitle
browser.findDomElement_
browser.isElementPresent
browser.takeScreenshot
browser.manage
browser.navigate
browser.switchTo
browser.driver
browser.baseUrl
browser.moduleNames_
browser.moduleScripts_
browser.waitForAngular
browser.findElement
browser.findElements
browser.addMockModule
browser.clearMockModules
browser.get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment