Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info about globals #306

Open
jpratt2 opened this issue Jun 26, 2024 · 1 comment
Open

add info about globals #306

jpratt2 opened this issue Jun 26, 2024 · 1 comment

Comments

@jpratt2
Copy link

jpratt2 commented Jun 26, 2024

Hello, I get a 404 when I try to edit https://nightwatchjs.org/guide/writing-tests/using-test-globals.html
May I suggest an update:
to add a global variable to the globals.js file, you can point out that it is not necessary to use the "module.exports" section. Just enter your variable above that section, like regular code:

myGlobal = 3000;

@garg3133
Copy link
Member

@jpratt2 Not sure what you mean here. Can you submit a PR for this? The file you're looking for is here: https://github.com/nightwatchjs/nightwatch-docs/blob/versions/3.0/docs/guide/writing-tests/using-test-globals.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants