534afa3162012a8cf63a67d2c6f33de49ab901ba gperez2 Mon Jun 26 16:24:47 2023 -0700 Adding a tmpdir for the cron, refs #30817 diff --git src/utils/qa/qaTestScript.py src/utils/qa/qaTestScript.py index a903b45..80d2c8c 100755 --- src/utils/qa/qaTestScript.py +++ src/utils/qa/qaTestScript.py @@ -26,30 +26,35 @@ # ^IGNORE # Imports module 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" + 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 webdriver_location = input("Enter the WebDriver location: ")