I want to know if there is a way where I can change a value in a python script and that will in return change all the corresponding values in other scripts as a bulk change?
I'll explain myself. I have a python script that simply types in an email address in a text box (let's say we saved this script as portal.py):
EMAIL = "Test@email.com"
... loads of code in between
email = driver.find_element_by_id("ctl00_MainContent_addressView_emailAddTextBox").send_keys(EMAIL)
confirm_email = driver.find_element_by_id("ctl00_MainContent_addressView_confirmEmailTextBox").send_keys(EMAIL)
Now what is going to happen is that other users are going to use portal.py saved in their local machines. Every person has their own unique email address. So they will need to manually change their email address in the script. But what happens if we have 50 scripts that require email addresses? Then this will be time consuming.
So what I'm hoping is we have a python script which sole purpose is to change email addresses in each script in bulk, or better yet, contains the email address and all the other scripts simply calls on that script to use that email address stored in that script.
Is this possible and how can this be implemented?