|
|
|
@ -39,7 +39,7 @@ if(LoggedOutStatus){
|
|
|
|
|
try driver.FindElementByXPath(Xpath).click()
|
|
|
|
|
|
|
|
|
|
js = document.querySelector("button[type='submit']").click();
|
|
|
|
|
driver.executeScript(js)
|
|
|
|
|
try driver.executeScript(js)
|
|
|
|
|
|
|
|
|
|
try driver.executeScript("return document.readyState").equals("complete") ; wait until page loads completely before proceeding
|
|
|
|
|
sleep, 1000
|
|
|
|
@ -243,13 +243,22 @@ Message = Inputting Tags
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
; Append comma to end of tags
|
|
|
|
|
; DailyMotion page automtically splits the tags into their little boxes when they're seperated by commas
|
|
|
|
|
DailyMotionVideoTags := VideoTags . ","
|
|
|
|
|
; DailyMotion page automtically splits the tags into individual tags when they're seperated by commas
|
|
|
|
|
|
|
|
|
|
; Iterate from one end of the array to another:
|
|
|
|
|
Loop % VideoTagsArray.Length(){
|
|
|
|
|
; ArrayItem := ARRAY[A_Index]
|
|
|
|
|
; MsgBox %
|
|
|
|
|
DailyMotionVideoTags .= VideoTagsArray[A_Index] . ","
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; DailyMotionVideoTags := VideoTags . ","
|
|
|
|
|
|
|
|
|
|
Message = Video Tags: %DailyMotionVideoTags%
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
Xpath = //div[@class='ant-select-selection-search']//input[@role='combobox']
|
|
|
|
|
Xpath = (//input[@id='tags'])[1]
|
|
|
|
|
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000,StringTextContent:=DailyMotionVideoTags)
|
|
|
|
|
|
|
|
|
|
; double check the input
|
|
|
|
@ -259,14 +268,12 @@ Message = Tags that got input: %inputTags% (Will be doubled b/c of js)
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; msgbox
|
|
|
|
|
Message = Clicking Next Button to Move on to next input screen
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
Xpath = //button[@type='button']//span[contains(text(),'Next')]
|
|
|
|
|
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
|
|
|
|
|
|
|
|
|
|
; msgbox, click work?
|
|
|
|
|
|
|
|
|
|
Message = Selecting "Not For Kids" checkbox
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
@ -303,51 +310,6 @@ if(Status){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
; Disable monitization for video
|
|
|
|
|
SaveOrPostProgress(Message:="Unchecking monetizaton checkbox",PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
Xpath = //button[normalize-space()='Advanced'] ; advanced tab button
|
|
|
|
|
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=5,SleepLength:=1000)
|
|
|
|
|
if(Status = "Failed"){
|
|
|
|
|
Message = Unable to Navigate to Advanced Settings Page to turn off monetization
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
; SaveOrPostProgress(Message:="Unchecking monetizaton checkbox",PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
; switch over to advanced tab
|
|
|
|
|
; js = document.getElementsByName('advanced')[0].click();
|
|
|
|
|
; try driver.executeScript(js)
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
sleep, 1000
|
|
|
|
|
Loop, 5 { ; Loop to uncheck the "monetization button"
|
|
|
|
|
|
|
|
|
|
if(A_index = 5){
|
|
|
|
|
Message = Failed to uncheck "monetization enabled" checkbox
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Xpath = //input[@name='advertising_instream_blocked'] ; monetization checkbox
|
|
|
|
|
try Status := driver.FindElementByXPath(Xpath).isSelected()
|
|
|
|
|
|
|
|
|
|
if(Status = 0) ; -1 is checked, 0 is unchecked
|
|
|
|
|
Break
|
|
|
|
|
|
|
|
|
|
; Click to uncheck the "allow monetization" checkbox
|
|
|
|
|
Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
/*
|
|
|
|
|
; Switch back to Basic tab
|
|
|
|
|
js = document.getElementsByName('basic')[0].click();
|
|
|
|
|
try driver.executeScript(js)
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Message = Clicking Next Button to Move on to third video settings screen
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
@ -355,7 +317,6 @@ Xpath = //button[@type='button']//span[contains(text(),'Next')]
|
|
|
|
|
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Message = Clicking Save Button to Finalize Upload
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|