moved global variables to proper file, added extra error logging for Chrome
This commit is contained in:
@@ -1,9 +1,24 @@
|
|||||||
; Notes/Extra Info/#Includes
|
; 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
|
; Chrome Related Functions
|
||||||
|
;------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
GetChromeFilepath(){
|
GetChromeFilepath(){
|
||||||
; ChromeFilepath is global variable
|
; ChromeFilepath is global variable
|
||||||
; Establish Variable with Filepath to be used throughout the script
|
; Establish Variable with Filepath to be used throughout the script
|
||||||
@@ -12,6 +27,9 @@ GetChromeFilepath(){
|
|||||||
|
|
||||||
if(FileExist(ChromePortableFilepath)){
|
if(FileExist(ChromePortableFilepath)){
|
||||||
ChromeFilepath := ChromePortableFilepath
|
ChromeFilepath := ChromePortableFilepath
|
||||||
|
|
||||||
|
Message = Using Chromium Portable for Upload
|
||||||
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
|
if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
; -------------------------------Variables-------------------------------
|
; -------------------------------Variables-------------------------------
|
||||||
; Declare global variables here so they don't have to be declared in each script
|
; 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DevModeMsgBox(Message){
|
DevModeMsgBox(Message){
|
||||||
|
|||||||
@@ -3,15 +3,6 @@
|
|||||||
; Selenium Related Functions
|
; Selenium Related Functions
|
||||||
|
|
||||||
|
|
||||||
; Global Variables
|
|
||||||
;------------------------------------------------
|
|
||||||
; 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
|
|
||||||
|
|
||||||
ShowSeleniumErrorMsgbox(){
|
ShowSeleniumErrorMsgbox(){
|
||||||
|
|
||||||
; Clipboard := ChromeVersion
|
; Clipboard := ChromeVersion
|
||||||
|
|||||||
Reference in New Issue
Block a user