added error check to brighteon video upload button click
This commit is contained in:
@@ -3452,7 +3452,7 @@ Loop, 5 {
|
||||
; check that the tags got input
|
||||
js = return document.querySelector("#keywords").value;
|
||||
try, status := driver.executeScript(js)
|
||||
if(status){
|
||||
if(!status){
|
||||
Message = Failed to input tags.
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
}
|
||||
@@ -3515,14 +3515,29 @@ Loop, %Number_of_loops_to_Check_Upload_status% {
|
||||
Return
|
||||
}
|
||||
|
||||
|
||||
; "Save Now" button
|
||||
js = return document.querySelector("button[class='mr-2 btn btn-primary btn-sm']").textContent;
|
||||
try, status := driver.executeScript(js)
|
||||
if(!InStr(status, "Save Video")){
|
||||
Message = Save Video Button is not clickable. Please check page for errors.
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||
SaveDriverURLOFErrorPage()
|
||||
Return
|
||||
}
|
||||
|
||||
|
||||
; Save Video button
|
||||
TooltipThis("Clicking Save Video Button to finalize Upload")
|
||||
try BrighteonUploadPageURL := driver.url
|
||||
try driver.executeScript("return document.readyState").equals("complete") ; wait until page loads completely before proceeding
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
TooltipThis("Waiting for Result page to finish loading")
|
||||
Loop, 60 { ; 5 loops of 1 minute each
|
||||
Loop, 10 { ; 5 loops of 1 minute each
|
||||
if(A_index = 10){
|
||||
Message = Upload Failed: Clicking "Save Video" did not Finalize the Upload
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||
|
||||
Reference in New Issue
Block a user