|
|
@ -60,7 +60,15 @@ if(status){
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ImageAttachmentFilepath){
|
|
|
|
if(ImageAttachmentFilepath){
|
|
|
|
|
|
|
|
; Click into space below the preview image so the "add photo" button shows up
|
|
|
|
|
|
|
|
Xpath = (//div[@class='block-list-appender wp-block'])[1]
|
|
|
|
|
|
|
|
try, driver.FindElementByXPath(Xpath).click()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Xpath = (//button[@title='Add photo'])[1]
|
|
|
|
|
|
|
|
; Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Click the Photo Icon on the next line down to attach an image
|
|
|
|
; Click the Photo Icon on the next line down to attach an image
|
|
|
|
Xpath = (//button[@title='Add photo'])[1]
|
|
|
|
Xpath = (//button[@title='Add photo'])[1]
|
|
|
@ -82,6 +90,17 @@ if(ImageAttachmentFilepath){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Input Tags
|
|
|
|
|
|
|
|
Xpath = (//textarea[@placeholder='#add tags to help people find your post'])[1]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try, driver.FindElementByXPath(Xpath).SendKeys(PostTags)
|
|
|
|
|
|
|
|
try, driver.SendKeys(driver.Keys.Enter)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sleep, 1000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ConfirmBeforeSubmit && ConfirmBeforeSubmitMsgboxFunc() != true) {
|
|
|
|
if (ConfirmBeforeSubmit && ConfirmBeforeSubmitMsgboxFunc() != true) {
|
|
|
|
Message = User Selected STOP button when asked for confirmation. Cancelling Rest of Site Upload.
|
|
|
|
Message = User Selected STOP button when asked for confirmation. Cancelling Rest of Site Upload.
|
|
|
|