Can't make iMacros click button

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
BillHamaker
Posts: 14
Joined: Fri Jul 12, 2013 4:54 pm

Can't make iMacros click button

Post by BillHamaker » Tue Jul 23, 2013 3:38 pm

This question is in regards to the following web page.

http://nppublic.co.san-bernardino.ca.us/newpims/(S(j2jpevystvpfzc55evtk4cq1))/PIMSINTERFACE.ASPX

The buttons at the top are pulldown menus that display search fields.

I want my macro to click the "Parcel Inquiry" button at the top left so I can fill in the search criteria and run a search. But I am stumped as how to get it to do that and the recorder doesn't seem to be helpful in this case.

Any suggestions?
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

Re: Can't make iMacros click button

Post by Tom, Tech Support » Fri Jul 26, 2013 10:15 am

Hi BillHamaker,

The URL you posted is malformed. Please edit and/or post the correct link.
Regards,

Tom, iMacros Support
BillHamaker
Posts: 14
Joined: Fri Jul 12, 2013 4:54 pm

Re: Can't make iMacros click button

Post by BillHamaker » Mon Jul 29, 2013 1:14 pm

Sorry about the malformed link. Does this link work okay?

http://nppublic.co.san-bernardino.ca.us/newpims/(S(cexutof5rcq3k4r25mjko5i4))/PIMSINTERFACE.ASPX
BillHamaker
Posts: 14
Joined: Fri Jul 12, 2013 4:54 pm

Re: Can't make iMacros click button

Post by BillHamaker » Mon Jul 29, 2013 1:18 pm

The above link didn't work either - something about pasting those weird characters maybe?

I'm going to try enclosing it in with the url tags.

http://nppublic.co.san-bernardino.ca.us ... RFACE.ASPX
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

Re: Can't make iMacros click button

Post by Tom, Tech Support » Tue Jul 30, 2013 3:15 pm

Hi Bill,

This is a bit of a weird one to say the least! I ended up trying this with iMacros for Firefox, which successfully recorded the following when clicking the Parcel Inquiry menu item:

Code: Select all

FRAME NAME="header"
TAG POS=1 TYPE=TD ATTR=ID:mnuPIMS_1
Unfortunately, on playback, this command would fail to display the search form in either Firefox or the iMacros browser. So I ended up using DirectScreen in combination with the TAG command to click the item, and that worked. Here's the complete macro:

Code: Select all

VERSION BUILD=9002379
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://nppublic.co.san-bernardino.ca.us/newpims/(S(r0b1pybcjjbc4y45uszg3x45))/PIMSINTERFACE.ASPX
FRAME NAME=header
TAG POS=1 TYPE=TD ATTR=ID:mnuPIMS_1
DS CMD=CLICK X={{!TAGX}} Y={{!TAGY}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:frmTOPINTERFACE ATTR=NAME:ParcelInquiryInput1:txtParcelNbr CONTENT=1234567890123
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:frmTOPINTERFACE ATTR=NAME:ParcelInquiryInput1:btnStartParcelInquiry
Regards,

Tom, iMacros Support
BillHamaker
Posts: 14
Joined: Fri Jul 12, 2013 4:54 pm

Re: Can't make iMacros click button

Post by BillHamaker » Tue Jul 30, 2013 4:11 pm

Thanks. I'll have to study the documentation on the Direct Screen functions so I can use it in similar situations.
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

Re: Can't make iMacros click button

Post by Tom, Tech Support » Tue Jul 30, 2013 4:24 pm

Take a look at the documentation for !TAGX while you're at it, so you get an idea of how to use DirectScreen with relative coordinates as I did in this macro.
Regards,

Tom, iMacros Support
Post Reply