iMacros 不会在 Tumblr 图片上填充标题和标签 post
iMacros doesn't fill caption and tags on Tumblr image post
我在 post 图片部分的 tumblr 中使用 iMacros 时遇到问题。我正在使用 OS X Yosemite 10.10.4 和 Firefox 40.0.2 的 macbook,这是我的问题:
当我处理我的代码时,没有添加标题或标签内容:
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=I ATTR=CLASS:icon_post_photo&&TXT:
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:photo CONTENT=/Users/me/Desktop/blabla.jpg
TAG POS=1 TYPE=P ATTR=TXT:
TAG POS=1 TYPE=P ATTR=TXT:xxxx
TAG POS=3 TYPE=DIV ATTR=TXT:
TAG POS=1 TYPE=SPAN ATTR=TXT:xxx
TAG POS=1 TYPE=DIV ATTR=DATA-JS-CLICKABLESAVEDROPDOWN:&&CLASS:flat-button<SP>blue<SP>dropdown<SP>options<SP>icon_arrow_carrot_down<SP>pinned-target&&TXT:
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>to<SP>queue
TAG POS=1 TYPE=BUTTON ATTR=TXT:Queue
它只是加载直到出现运行时错误。
非常感谢您给我的任何建议。
这是填充标题和标签的部分代码:
' ...
' wait to load the image
WAIT SECONDS=3
' caption
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV>P" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS="My image caption"
WAIT SECONDS=0.5
' tag #1
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="my tag1"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS=""
WAIT SECONDS=0.5
' tag #2
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="my tag2"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS=""
WAIT SECONDS=0.5
' tags etc.
' ...
我在 post 图片部分的 tumblr 中使用 iMacros 时遇到问题。我正在使用 OS X Yosemite 10.10.4 和 Firefox 40.0.2 的 macbook,这是我的问题: 当我处理我的代码时,没有添加标题或标签内容:
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=I ATTR=CLASS:icon_post_photo&&TXT:
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:photo CONTENT=/Users/me/Desktop/blabla.jpg
TAG POS=1 TYPE=P ATTR=TXT:
TAG POS=1 TYPE=P ATTR=TXT:xxxx
TAG POS=3 TYPE=DIV ATTR=TXT:
TAG POS=1 TYPE=SPAN ATTR=TXT:xxx
TAG POS=1 TYPE=DIV ATTR=DATA-JS-CLICKABLESAVEDROPDOWN:&&CLASS:flat-button<SP>blue<SP>dropdown<SP>options<SP>icon_arrow_carrot_down<SP>pinned-target&&TXT:
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>to<SP>queue
TAG POS=1 TYPE=BUTTON ATTR=TXT:Queue
它只是加载直到出现运行时错误。
非常感谢您给我的任何建议。
这是填充标题和标签的部分代码:
' ...
' wait to load the image
WAIT SECONDS=3
' caption
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV>P" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS="My image caption"
WAIT SECONDS=0.5
' tag #1
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="my tag1"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS=""
WAIT SECONDS=0.5
' tag #2
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="my tag2"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS=""
WAIT SECONDS=0.5
' tags etc.
' ...