Rumble Primary Category input
This commit is contained in:
@@ -24,7 +24,7 @@ try CurrentURL := driver.URL
|
||||
if(InStr(CurrentURL, "/login.php")){
|
||||
|
||||
if(AutoLogin){
|
||||
Message = Logging in Automatically by clicking into the UN+PW fields for info to register
|
||||
Message = Trying to Log in Automatically by clicking into the UN+PW fields for info to register from Password Manager
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
||||
|
||||
; have to click into username and password field for page to register that there's input
|
||||
@@ -39,11 +39,12 @@ if(InStr(CurrentURL, "/login.php")){
|
||||
js = document.querySelector("button[type='submit']").click();
|
||||
driver.executeScript(js)
|
||||
|
||||
|
||||
; Do a double check to make sure that login worked
|
||||
Message = Checking Login Status
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
|
||||
sleep, 5000
|
||||
|
||||
try CurrentURL := driver.URL
|
||||
|
||||
if(!InStr(CurrentURL, "/upload")){
|
||||
@@ -67,11 +68,10 @@ if(InStr(CurrentURL, "/login.php")){
|
||||
sleep, 5000
|
||||
}
|
||||
|
||||
; CheckForAlerts()
|
||||
|
||||
Message = Uploading Video File
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
; SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
||||
|
||||
|
||||
Xpath = //input[@id='Filedata']
|
||||
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000,StringTextContent:=VideoFilepath)
|
||||
@@ -84,6 +84,9 @@ if(Status){
|
||||
}
|
||||
|
||||
|
||||
Message = Inputting Video Information
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
|
||||
; Input Title
|
||||
try driver.findElementsByName("title").item[1].SendKeys(VideoTitle) ;selects element based on Name and sends variable to it.
|
||||
catch e {
|
||||
@@ -117,30 +120,22 @@ Loop, 5 { ; Attempt to input video description a couple of times
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
; sleep, 5000
|
||||
; Input Primary Category
|
||||
Xpath = (//input[@placeholder='- Primary category -'])[1]
|
||||
try, driver.FindElementByXPath(Xpath).SendKeys("Podcasts").SendKeys(driver.Keys.ENTER)
|
||||
|
||||
|
||||
Message = Selecting Channel
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
||||
|
||||
|
||||
|
||||
; try driver.findElementsByID("channelId").item[1].click()
|
||||
|
||||
; @todo replace with regex
|
||||
js = return document.querySelector("#channelId").innerHTML;
|
||||
try, ChannelIDNumber := driver.executeScript(js)
|
||||
; Msgbox % "ChannelIDNumber: " ChannelIDNumber
|
||||
ChannelIDNumber := StrSplit(ChannelIDNumber, "option value=")
|
||||
|
||||
; Msgbox % "ChannelIDNumber: " ChannelIDNumber
|
||||
|
||||
ChannelIDNumber := ChannelIDNumber[3]
|
||||
; Msgbox % "ChannelIDNumber: " ChannelIDNumber
|
||||
|
||||
SingleQuote = "
|
||||
ChannelIDNumber := StrSplit(ChannelIDNumber, "data-private")
|
||||
ChannelIDNumber := ChannelIDNumber[1]
|
||||
|
||||
Reference in New Issue
Block a user