Nightwatch: read javascript variables in nightwatch js

Created on 8 Oct 2015  路  2Comments  路  Source: nightwatchjs/nightwatch

Hi, i want read javascript varaiables using nightwatch, can anybody help me

Most helpful comment

browser.execute("return window.yourGlobalVariable;", [], function(response) {
  var value = response.value;
});

All 2 comments

browser.execute("return window.yourGlobalVariable;", [], function(response) {
  var value = response.value;
});

wow, nice , Thanks a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manjero picture manjero  路  4Comments

chaseconey picture chaseconey  路  4Comments

dakebl picture dakebl  路  4Comments

Pieras2 picture Pieras2  路  3Comments

davidlinse picture davidlinse  路  4Comments