Skip to content

Instantly share code, notes, and snippets.

@morygonzalez
Created September 25, 2015 01:10
Show Gist options
  • Save morygonzalez/518b12e7465820998236 to your computer and use it in GitHub Desktop.
Save morygonzalez/518b12e7465820998236 to your computer and use it in GitHub Desktop.
speculation = fs.read(jsonPath)
data = """
speculation = #{speculation}
"""
page.evaluateJavaScript data
@ku
Copy link

ku commented Sep 25, 2015

scope = angular.element(DOMELEMENT).scope()
scope.speculation = speculation
scope.$apply()

@ku
Copy link

ku commented Sep 25, 2015

https://cdn.kaizenplatform.net/demo/roi/inject.js の中身が参考になると思います

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment