I'm new to the forum but have been using imacros successfully for its screen scrapping capabilities.
I'm creating a topic here because I'm REALLY stuck! I've been looking at all the topics and nothing works for me.
Thank you in advance for looking into this.
Process: I need to recreate a process to automate it on a weekly basis.
Then I try to shift the focus to that tab but nothing happens.
I even tried to bypass clicking the link and open a new tab and go to the URL, but it open the tab and open the URL in Tab 1.
Code: Select all
VERSION BUILD=11.1.495.5175 TAB T=1 TAB CLOSEALLOTHERS SET !TIMEOUT_STEP 10 SET !TIMEOUT_PAGE 60 SET !ERRORIGNORE YES URL GOTO=https://myurl.com TAG POS=1 TYPE=SELECT ATTR=NAME:OptionSetId CONTENT=%9395 TAG POS=1 TYPE=SELECT ATTR=NAME:SearchSelection CONTENT=%SEARCH~P~Prompted TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:StartDate CONTENT=16/06/16 TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:Duration CONTENT=120 TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:ShopStartDate CONTENT=09/05/16 TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:ShopEndDate CONTENT=16/05/16 TAG POS=1 TYPE=IMG ATTR=ID:img_sreServiceOptions_RunProcess 'New tab opened 'This where it stops working as it does not switch its focus to TAB 2 TAB T=2 TAG POS=1 TYPE=SELECT ATTR=NAME:!SRC!NPO_RESRC_CAL_PARAM!RESRC_ID!L!AWE_SEARCH!P!0 CONTENT=%0013 TAG POS=2 TYPE=SPAN ATTR=TXT:Done
Code: Select all
TAB OPEN TAB T=2 URL GOTO=https://myurl.com/ProcessLaunch TAG POS=1 TYPE=SELECT ATTR=NAME:!SRC!NPO_RESRC_CAL_PARAM!RESRC_ID!L!AWE_SEARCH!P!0 CONTENT=%0013 TAG POS=2 TYPE=SPAN ATTR=TXT:Done
This does not work as both windows need to stay open in order for the process to work.
I use IE11 in compability mode because my web application is only developed for IE9.
Thank you so much for looking into this.