moved global variables to proper file, added extra error logging for Chrome

This commit is contained in:
2023-07-28 10:54:50 -04:00
parent 621127eaf0
commit e15f45c67a
3 changed files with 28 additions and 12 deletions

View File

@@ -1,9 +1,24 @@
; Notes/Extra Info/#Includes
;------------------------------------------------
; Chrome Global Variables
;------------------------------------------------
; Chrome/Selenium
global ChromeFilepath
; Declare global variables here so they don't have to be declared in each script
global ChromeTabsURLArray
global DriverTitleArray
global LastWebsitePostURL
global CurrentTabURL
global URLOfLastErrorPage
; Chrome Related Functions
;------------------------------------------------
GetChromeFilepath(){
; ChromeFilepath is global variable
; Establish Variable with Filepath to be used throughout the script
@@ -12,6 +27,9 @@ GetChromeFilepath(){
if(FileExist(ChromePortableFilepath)){
ChromeFilepath := ChromePortableFilepath
Message = Using Chromium Portable for Upload
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
}
else {
if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))