Sign in to follow this  
Followers 0
litlmike

IE.au3 and IE-Builder v1.0.4 Question

7 posts in this topic

Can someone tell me where my coding is wrong, and the solution?

I can create, navigate, and clink to the correct page, but I can't get the script to enter '1' in the the field. I am new to "IE.au3 and IE-Builder v1.0.4", and my apologies for not knowing the answer.

I attached 2 .jpg so that you can see what IE-Builder v1.0.4 produced (when I paste the results it doesn't show-up well).

$o_IE = _IECreate ()
_IENavigate ($o_IE, "[Secret WebPage]")
_IEClickLinkByText ($o_IE, "Create New Proposal")
_IEClickLinkByText ($o_IE, "Search")
$o_SearchForm = _IEFormGetObjByName ($o_IE, "form 0")
$o_Keywords = _IEFormElementGetObjByName ($o_SearchForm, "qty48")
_IEFormElementSetValue ($o_Keywords, "1")
_IEFormSubmit ($o_SearchForm)

IE-Builder v1.0.4 gave me the following Form Elements:

Elements for form 0

Index Tag Name Id Extra Information Object Type

0 INPUT qty78 Form Input Type: text DispHTMLInputElement

Value: 0

1 INPUT qty22 Form Input Type: text DispHTMLInputElement

Value: 0

2 INPUT qty11 Form Input Type: text DispHTMLInputElement

Value: 0

3 INPUT qty45 Form Input Type: text DispHTMLInputElement

Value: 0

4 INPUT qty25 Form Input Type: text DispHTMLInputElement

Value: 0

5 INPUT qty26 Form Input Type: text DispHTMLInputElement

Value: 0

6 INPUT qty27 Form Input Type: text DispHTMLInputElement

Value: 0

7 INPUT qty28 Form Input Type: text DispHTMLInputElement

Value: 0

8 INPUT qty35 Form Input Type: text DispHTMLInputElement

Value: 0

9 INPUT qty37 Form Input Type: text DispHTMLInputElement

Value: 0

10 INPUT qty80 Form Input Type: text DispHTMLInputElement

Value: 0

11 INPUT qty81 Form Input Type: text DispHTMLInputElement

Value: 0

12 INPUT qty82 Form Input Type: text DispHTMLInputElement

Value: 0

13 INPUT qty83 Form Input Type: text DispHTMLInputElement

Value: 0

14 INPUT qty79 Form Input Type: text DispHTMLInputElement

Value: 0

15 INPUT qty36 Form Input Type: text DispHTMLInputElement

Value: 0

16 INPUT qty21 Form Input Type: text DispHTMLInputElement

Value: 0

17 INPUT qty38 Form Input Type: text DispHTMLInputElement

Value: 0

18 INPUT qty51 Form Input Type: text DispHTMLInputElement

Value: 0

19 INPUT qty47 Form Input Type: text DispHTMLInputElement

Value: 0

20 INPUT qty48 Form Input Type: text DispHTMLInputElement

Value: 0

Share this post


Link to post
Share on other sites



Dale is really good at this stuff

i need to see the page and work-on-it to make all of his library tools execute properly for me

Dale will probably come along shortly

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Dale is really good at this stuff

i need to see the page and work-on-it to make all of his library tools execute properly for me

Dale will probably come along shortly

8)

From what you can tell, does my coding look correct? Unfortunately, the webpage is private and you can't view it. :o

Is there something else I should be looking for or doing?

Share this post


Link to post
Share on other sites

I haven't looked at the code that generates the element summary for a while, but I believe that your issue is that the form is NOT named "form 0" but rather, that is the form with an index of 0.

If this is the case, change the line

$o_SearchForm = _IEFormGetObjByName ($o_IE, "form 0")

to

$o_SearchForm = _IEFormGetObjByIndex ($o_IE, 0)

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I haven't looked at the code that generates the element summary for a while, but I believe that your issue is that the form is NOT named "form 0" but rather, that is the form with an index of 0.

If this is the case, change the line

$o_SearchForm = _IEFormGetObjByName ($o_IE, "form 0")

to

$o_SearchForm = _IEFormGetObjByIndex ($o_IE, 0)

Dale

***Gives Dale a Big Hug and a Bigger Cookie***

IT WORKS!!!!!

Thanks so much!

Can I sequester more of your wisdom? How I will know the difference in the future if it is named 'form 0' or it has an index of '0'?

Thanks again!

Share this post


Link to post
Share on other sites

***Gives Dale a Big Hug and a Bigger Cookie***

IT WORKS!!!!!

Thanks so much!

Can I sequester more of your wisdom? How I will know the difference in the future if it is named 'form 0' or it has an index of '0'?

Thanks again!

Ouch! Don't hug so hard :">

How to be sure? It will always be an Index. I wrote that code as an example of parsing the DOM and Valuater encapsulated it in his tool... so you can look at the source if you want to see what it is doing. It is in Valuater's tool or in reply 37 of the IE.au3 post.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0