I am experimenting with Webdriverio Testrunner using Selenium Standalone. I have encountered an issue while trying to check a global variable (window.myVar) in one of my tests. When attempting to return the window object, I am getting unexpected results
it('should return window', (done) => {
const url = 'http://www.example.com';
browser.url(url);
browser.waitForVisible('body', 20000);
browser.pause(1000);
browser.execute(getWindow)
.then(result => {
console.log(result);
});
});
This is the output:
․{ sessionId: '6f0cd910-2ec8-11e8-80fb-bf4604ec860e',
status: 0,
value: { WINDOW: ':wdc:1521829902692' } }
What does WINDOW: ':wdc:1521829902692' signify? How can I access the actual window object?