-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Is there any way to interfere with global variables from Class BaseCase? #3360
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
Comments
That's more of a general Python question about |
i used
so is that true ? |
According to the StackOverflow post, the global variable was first set before the function, and then set with the globvar = 0
def set_globvar_to_one():
global globvar # Needed to modify global copy of globvar
globvar = 1
def print_globvar():
print(globvar) # No need for global declaration to read value of globvar
set_globvar_to_one()
print_globvar() # Prints 1 |
I think I actually did that. Please review my code in topic
|
Check the Syntax Formats. You're using a You can avoid that by using Syntax Format 23: SeleniumBase SB (Python context manager) so that you're using pure Python format, rather than |
Like title , My code :
print(good_count, bad_count) >>> good = 0 bad = 0
Please help me. Thank you!
The text was updated successfully, but these errors were encountered: