Skip to content

"window is not defined" exception when trying to access window object #1468

@chebum

Description

@chebum

I'm writing my first test and trying to access some global variables from window object.
window.top["myobj"] throws "window is not defined" exception
await Selector("window")() returns null.

What's correct way to access window object?

  • operating system: Windows 10
  • testcafe version: 0.15.0
  • node.js version: 7.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    STATE: Auto-lockedAn issue has been automatically locked by the Lock bot.TYPE: questionThe issue contains a question that won't be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions