this iMacross script i want to use in facebook. i want to create iMacross script that will click \"Delete this photo\" link, wait a second until a dialog box appear and will cli
The problem is with TAG POS=1 ATTR=TXT:Delete this photo
because the innerHTML (TXT for iMacros) contains Blank spaces to solve this you have 2 options
replace each blank space with
in your TXT
attribute:
TAG POS=1 TYPE=A ATTR=TXT:DeleteThisPhoto
enclose your TXT
within double-quotes:
TAG POS=1 TYPE=A ATTR=TXT:"Delete This Photo"
Both solutions works, Here's what I have tested
VERSION BUILD=8820413 RECORDER=FX
TAB T=1
URL GOTO=https://www.facebook.com/photo.php?fbid={ID}
TAG POS=1 TYPE=A ATTR=TXT:"Delete This Photo"
WAIT SECONDS=3
TAG POS=1 TYPE=BUTTON ATTR=TXT:Confirm
To delete the photo in Facebook "theater" mode, we need to open the photo permalink then initiate the "theater" mode using TAG POS=1 TYPE=A ATTR=TXT:"Open Photo Viewer"
VERSION BUILD=8820413 RECORDER=FX
TAB T=1
URL GOTO=https://www.facebook.com/photo.php?fbid=162982897217166
TAG POS=1 TYPE=A ATTR=TXT:"Open Photo Viewer"
WAIT SECONDS= 5
TAG POS=1 TYPE=SPAN ATTR=TXT:Options
TAG POS=2 TYPE=SPAN ATTR=TXT:"Delete This Photo"
TAG POS=1 TYPE=BUTTON ATTR=TXT:Confirm
Further Reading: