I'm trying to create multiple Eventbrite events using a CSV file of my locations, dates and ticket types. Everything is working quite well except for the date.
The tag id changes each time you're creating a new event, so I thought I would try using a direct click instead. The direct click works for the FIRST run through of the macro, but on the second loop it fails. The code below works once but when trying to create a second event I receive <i>Error -1300: Cannot find HTML element of type "A:" with attribute(s) "TXT:21".. Line 19: TAG POS=1 TYPE=A ATTR=TXT:{{!COL7}}</i>
Note also that I do not know the id as I am creating new events and it is generating that tag id, so I couldn't put that in the CSV file. Also the id is not related to the eventid that is created by Eventbrite. All I need to do is click on the calendar to have the popup open and then set the date to a number, say 21. It works once which makes it all the more frustrating!
Code: Select all
DS CMD=LDOWN X=164 Y=323 CONTENT=
DS CMD=LUP X=164 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL7}}
DS CMD=LDOWN X=438 Y=323 CONTENT=
DS CMD=LUP X=438 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL9}}
Code: Select all
VERSION BUILD=12.0.501.6698
TAB T=1
TAB CLOSEALLOTHERS
'SET !PLAYBACKDELAY 0.00
SET !DATASOURCE C:\Users\user\Downloads\Events.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
'SIZE X=1034 Y=589
URL GOTO=https://www.eventbrite.com/edit?clone=1&eid=42921684915
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:group-details-name CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-venue<SP>l-mar-top-1 CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-address_1<SP>l-mar-top-1<SP>js-xd-cep-street CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-city<SP>l-mar-top-1<SP>js-xd-cep-city CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-state<SP>l-mar-top-1<SP>js-xd-cep-state CONTENT={{!COL5}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-postal_code<SP>l-mar-top-1<SP>js-xd-cep-input CONTENT={{!COL6}}
TAG POS=1 TYPE=SELECT ATTR=CLASS:js-d-select-box<SP>js-location-edit-country CONTENT=%CA
DS CMD=LDOWN X=164 Y=323 CONTENT=
DS CMD=LUP X=164 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL7}}
DS CMD=LDOWN X=438 Y=323 CONTENT=
DS CMD=LUP X=438 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL9}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-dtp-timepicker-input<SP>time<SP>form__input--xshort<SP>js-timepicker-input CONTENT={{!COL8}}
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:js-dtp-timepicker-input<SP>time<SP>form__input--xshort<SP>js-timepicker-input CONTENT={{!COL10}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:group-tickets-0-quantity_total CONTENT={{!COL11}}
TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:group-privacy_and_promotion-listed
'WAIT SECONDS=6
'TAG POS=1 TYPE=A ATTR=TXT:Make<SP>Your<SP>Event<SP>Live
TAG POS=5 TYPE=A ATTR=TXT:Save
WAIT SECONDS=10