c536d4998bee3af0fa1dd8875224ad46e5891804 gperez2 Tue Jun 27 13:27:35 2023 -0700 Updating tmpdir for the cron, refs #30817 diff --git src/utils/qa/qaTestScript.py src/utils/qa/qaTestScript.py index 80d2c8c..b97d906 100755 --- src/utils/qa/qaTestScript.py +++ src/utils/qa/qaTestScript.py @@ -29,31 +29,31 @@ from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import NoAlertPresentException import unittest, time, re, sys, argparse # Adding a tmpdir for the cron import os -os.environ['TMPDIR'] = "/hive/users/qateam/selenium/chrom113/TMP" +os.environ['TMPDIR'] = "/hive/users/$USER/selenium/chrom113/cron/TMP" def initialize_driver(headless): """Initiates which webdriver to run for headless mode or local mode""" options = Options() if headless: options.add_argument('--headless') options.add_argument('--no-sandbox') options.add_argument("--headless") options.add_argument('--disable-dev-shm-usage') options.add_argument("--start-maximized") options.add_argument("--window-size=1920,1080") options.binary_location = '/hive/users/lrnassar/selenium/chrom113/chromeInstall/opt/google/chrome/google-chrome' driver = webdriver.Chrome('/hive/users/lrnassar/selenium/chrom113/chromedriver', options = options) else: # Asks user for the WebDriver location