BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Discussions and Tech Support specific to the iMacros Firefox add-on.
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
viking
Posts: 244
Joined: Sun Mar 16, 2008 7:22 am

BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by viking » Fri Aug 29, 2008 7:55 pm

IMacros is a great extension and I have written several scripts filling in Forms.
However, after many hours of trials I can not get iMacros to fill in a seemingly simple form on TimeWarner's PayExpress.

No problem having iMacros log in to the site. However, after logging in, it can not fill in the data as shown in attached image below (Of course showing fictitious data):

I tried both Firefox and IE Extension in various modes. For example;

I. Firefox AutoRecord:
VERSION BUILD=6060801 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:payBillOneTimeForm ATTR=ID:otherBalance
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:paymentAmount CONTENT=1.00
TAG POS=1 TYPE=DIV ATTR=TXT:
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:cardholdersName CONTENT=Peter<SP>Pan
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:cardNumber CONTENT=1234123412341234
TAG POS=2 TYPE=DIV ATTR=TXT:
' ERROR HERE (RuntimeError: element LI specified by ID:cardExpiryMonth_popup8 was not found, line 11)
TAG POS=1 TYPE=LI ATTR=ID:cardExpiryMonth_popup8
TAG POS=1 TYPE=LI ATTR=ID:cardExpiryYear_popup2
TAG POS=1 TYPE=BUTTON ATTR=ID:dijit_form_Button_1

With this mode,
a. The "Other Amount" check box is not checked and the "Other Amount" field is blank (should be 1.00).
b. Card Type is Blank
c. I get a RuntimeError (see above) and the two expiration fields are blank.

NOTE: I believe that iMacros is recording the line before the error incorrectly (TAG POS=2 TYPE=DIV ATTR=TXT:) and that is what is causing the error. I had a similar problem on another page and somehow mysteriously, after several recoding attempts the line was changed from:
TAG POS=1 TYPE=DIV ATTR=TXT:
to
TAG POS=1 TYPE=DIV ATTR=TXT:▼

Not sure why the "▼" was missing in all attempts to record except one. After the "▼" was added, the error was gone in that case. Maybe the line in the current recording above (TAG POS=2 TYPE=DIV ATTR=TXT:) also need to be adjusted soemhow?


II. Firefox XY-Record:
VERSION BUILD=6060801 RECORDER=FX
TAB T=1
CLICK X=465 Y=421
CLICK X=578 Y=421
CLICK X=578 Y=421 CONTENT=1.00
CLICK X=697 Y=462
' Note the strange coordinates below. This was recorded when selecting a card type (Master Card) in the drop down box.
CLICK X=0 Y=-9955
CLICK X=475 Y=647
CLICK X=475 Y=647 CONTENT=Peter<SP>Pan
CLICK X=475 Y=686
CLICK X=475 Y=686 CONTENT=1234123412341234
CLICK X=529 Y=727
CLICK X=0 Y=-9908
CLICK X=614 Y=727
CLICK X=0 Y=-9967
CLICK X=877 Y=770

With this mode,
a. The "Other Amount" check box is checked and the "Other Amount" field is set to 1.00 (as it should)
b. All other fields are blank (no errors)
c. The Continue button is also not clicked so it does not progress to the next page.

Thus, the main issues here are how to fill the Card Type field and the expiration date fields. Both are drop down boxes, but neither Autorecord or XY record gives the correct results.

Any suggestions? I think that the difficulty is because the page uses some kind of java script (??).
TIA!!
Last edited by viking on Sun Sep 07, 2008 5:33 pm, edited 2 times in total.
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by Tech Support » Sat Aug 30, 2008 3:02 pm

One solution that will work for sure is to use the DirectScreen commandsthat are part of the commercial iMacros version.

As for the regular iMacros for Firefox version, can we somehow log into the website to recreate the issue?
viking
Posts: 244
Joined: Sun Mar 16, 2008 7:22 am

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by viking » Sat Aug 30, 2008 7:04 pm

The commercial version may be a bit extreme for something so "simple"... Which is the least expensive version that have this feature?

It is a personal account so I can not give out login info here....
I could possibly change the password, and give you temporary access while I am on the phone with you. Would that work? Can I call you?
viking
Posts: 244
Joined: Sun Mar 16, 2008 7:22 am

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by viking » Tue Sep 02, 2008 1:58 am

I have submitted a ticket to Tech Support, referencing this post.
viking
Posts: 244
Joined: Sun Mar 16, 2008 7:22 am

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by viking » Sat Sep 06, 2008 8:07 pm

The current Beta version v6.0.7.0 works much better for this form. Everything is filled in OK when Playing after having used Auto Record mode.

The only issue is that the "Continue" button is only selected but not pressed at the end of the script.
TAG POS=1 TYPE=BUTTON ATTR=ID:dijit_form_Button_1

NOTE: If I play this line in the current non-beta version 6.0.6.9, the button is pressed fine. Thus, this appears to be a new bug in the current v6.0.7.0 beta.

Using X/Y recording in the current beta is a temporary fix, e.g.:
CLICK X=877 Y=626
Last edited by viking on Sun Sep 07, 2008 5:35 pm, edited 1 time in total.
viking
Posts: 244
Joined: Sun Mar 16, 2008 7:22 am

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by viking » Sun Sep 07, 2008 5:24 pm

I spoke to soon above. The script only works fine sometimes. I discovered that I needed to insert WAIT commands to get it to work. The following works in v6.0.6.9

(obtained by using the recording in v6.0.7.0 and replacing
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:paymentform ATTR=ID:otherBalance
with
CLICK X=465 Y=421
Because the TAG/RADIO command does not work in v6.0.6.9 )

VERSION BUILD=6070905 RECORDER=FX
TAB T=1
CLICK X=465 Y=421
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:payBillOneTimeForm ATTR=ID:paymentAmount CONTENT=1.00
TAG POS=14 TYPE=DIV ATTR=TXT:
WAIT SECONDS=0.5
TAG POS=1 TYPE=LI ATTR=ID:cardType_popup3
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:payBillOneTimeForm ATTR=ID:cardholdersName CONTENT=peter<SP>pan
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:payBillOneTimeForm ATTR=ID:cardNumber CONTENT=1234123412341234
TAG POS=27 TYPE=DIV ATTR=TXT:
WAIT SECONDS=0.5
TAG POS=1 TYPE=LI ATTR=ID:cardExpiryMonth_popup8
TAG POS=30 TYPE=DIV ATTR=TXT:
TAG POS=1 TYPE=LI ATTR=ID:cardExpiryYear_popup3
TAG POS=1 TYPE=BUTTON ATTR=ID:dijit_form_Button_1
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by Tech Support » Wed Sep 10, 2008 11:40 am

We just released V6.0.7.1, can you please retest with this version?
viking
Posts: 244
Joined: Sun Mar 16, 2008 7:22 am

Re: BIG CHALLENGE/PLEASE HELP "Simple Form Fill"

Post by viking » Thu Sep 11, 2008 12:19 am

Tech Support wrote:We just released V6.0.7.1, can you please retest with this version?
The "Continue" button is still not pressed at the end of the script:
TAG POS=1 TYPE=BUTTON ATTR=ID:dijit_form_Button_1

p.s. I am testing v6.0.7.1 on a different PC with FF2 as the LOOP is currently not working 100%.
On my PC with v6.0.6.9 and FF3, the "Continue" button is pressed w/o issues.
Post Reply