Skip to content

Instantly share code, notes, and snippets.

@mistadikay
Created October 5, 2017 08:48
Show Gist options
  • Save mistadikay/2f9a78718854e56ee3e04e0633f77263 to your computer and use it in GitHub Desktop.
Save mistadikay/2f9a78718854e56ee3e04e0633f77263 to your computer and use it in GitHub Desktop.
beforeAll(() => browser.waitForExist('body'));
it('rendered on the page', () => {
// <script type="text/javascript">
// window.jsErrors = [];
// window.jsErrors.push('test');
// window.jsErrors = JSON.stringify(window.jsErrors);
// // window.onerror = function(e) {
// // window.jsErrors.push(e.message);
// // };
// </script>
const stuff = function() {
return window.stuff;
};
const result = browser.execute(stuff);
console.log(result.value);
expect(true).toBeTruthy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment