Hi Guys,
What i'm trying to do is execute a few actions on a few websites using selenium, i was going to have my structure like:
sites
--site1.py
--site2.py
--site3.py
Each file in the "sites" folder would be a class, in the main file:
cheers guys
Graham
What i'm trying to do is execute a few actions on a few websites using selenium, i was going to have my structure like:
sites
--site1.py
--site2.py
--site3.py
Each file in the "sites" folder would be a class, in the main file:
import sys sys.path.append('/sites') from selenium import webdriver from selenium.webdriver.chrome.options import Options #options = Options() #options.headless = False #options.add_argument('start-maximized') #options.add_argument('disable-infobars') #options.add_argument("--disable-extensions") #driver = webdriver.Chrome("chromedriver.exe", chrome_options=options) print(sys.path.append('/sites'))I'm trying to include the "sites" folder, and access the classes inside, in a class i have a basic test message:
def testing(): print('hello testing!')To check if it's working or not, i cannot seem to see the best way to include the classes from the folder, any help would be appreciated.
cheers guys
Graham