Access no name forms via script.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
tommytx
Pro Scripter
Posts: 61
Joined: Mon Dec 22, 2003 3:20 am

Access no name forms via script.

Post by tommytx » Mon Mar 08, 2004 8:11 am

I am having a problem accessing a form that has no name when more than two unnamed forms are on the same page. I have an idea how to do it, but when frames are involved it fails. Is there a way to set focus to a certain frame. I have a couple of samples set up at http:www.vahud.com for anyone willing to view and give me some ideas. I am using the following commands to find the desired form input box.
Press Alt
Send>ef (Find test on this page)
Send>My Special Form (data to find)
Press Enter (find data now)
Press Tab (move to cancel button)
Press Enter (cancel the find box)
Press Tab (places the cursor in the correct form input box)

The above commands works fine as long as no forms are involved, but when the page involves frames, instead of the cursor going into the correct form box, it goes to the first box at the top of the page. Is there someway to set focus to the particular page frame.
The sample is located at http://www.vahud.com/without_frame.htm and http://www.vahud.com/with_frame.htm
The instructions as to how to test is also included on those pages.
You can manually follow the key sequence without script to see what I mean.
When you arrive at the pages scroll down to the green text to read the testing instructions.

Any possible ideas would be greatly appreciated.

Lumumba

Post by Lumumba » Mon Mar 08, 2004 11:58 am

:idea:
Would it make sense to create some ankers within that pages? You could "call" the relevant page section via its URL ....


Goto Page 2
.
.
.
Page 2
.
.
.


Run Program>IExplore "http://www.vahud.com/with_frame.htm#pg02"

tommytx
Pro Scripter
Posts: 61
Joined: Mon Dec 22, 2003 3:20 am

Post by tommytx » Mon Mar 08, 2004 5:20 pm

Anchors would be great, however simply giving the form a name would be even easier such as name=form1, form2 etc. The problem is and I apologize for not mentioning it in the original report...is that the forms I am trying to auto fill are not on my website. In other words, I don't think anyone will allow me to add anchors to their pages.

Thanks for the suggestion....but as explained...the problem is that I don't have access to the actual pages. The pages at vahud.com are only samples of similar pages I need to auto fill.

So I need to find a way to autofill them as they are. The samples at vahud.com give very detailed explanation.

Sorry for not including that little tidbit in the original report.

Thanks again for your suggestion.

Tom

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts