Skip to content

Instantly share code, notes, and snippets.

@misaxi
Created January 30, 2014 02:22
Show Gist options
  • Save misaxi/8701473 to your computer and use it in GitHub Desktop.
Save misaxi/8701473 to your computer and use it in GitHub Desktop.
class Page
constructor: ->
# this is singleton
@ptor = protractor.getInstance()
get: (relativeUrl, ignoreSync) ->
# we want to ignore sync if the
# page does not use AngularJS
@ptor.ignoreSynchronization = ignoreSync or false
@ptor.get @ptor.baseUrl + relativeUrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment