Jump to content

How to do option select using FF.au3


tommytx
 Share

Go to solution Solved by Danp2,

Recommended Posts

I am trying to do a very simple thing and believe its something to to with FF connection.. Moz seems to be working ok...

Here is the code: Can't get much simpler than that.

#Include <FF.au3>

_FFStart("http://52payperclick.com/idxtest/short-form.htm")

Sleep(1000)

_FFFormOptionselect("id_parent", "name", "Case 3", "text")

Problem is it keeps tellng me it cannot connect to FF..

It generates this code immediately on ticking F5

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut 

"E:\keffer\!!!_____autoit-work-IDX-BROKER-PAGE-MAKER\FF_Testing\FF_FILES\All_FF_Commands\FF_master.au3"    
__FFStartProcess: ""C:\Program Files\Mozilla Firefox\firefox.exe" -new-window 

"http://52payperclick.com/idxtest/short-form.htm"  "-repl 4242 "
_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2
_FFConnect: AutoIt: 3.3.10.2
_FFConnect: FF.au3: 0.6.0.1b-10
_FFConnect: IP: 127.0.0.1
_FFConnect: Port:   4242
_FFConnect: Delay:  2ms

Then in about 3 min delay it spits out this below the code above.

_FFConnect ==> Timeout: TCPConnect Error: 10061
_FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242
"E:\keffer\!!!_____autoit-work-IDX-BROKER-PAGE-MAKER\FF_Testing\FF_FILES\All_FF_Commands\FF_master.au3" (8) : ==> 

Unknown function name.:
If _Singleton("Mozrepl Manager.exe", 1) = 0 Then
If ^ ERROR
>Exit code: 1    Time: 65.227

Here is the code on the web as we speak.. and that si the code it navigates to.:

<select name="id_parent">
      <option value="1">Home</option>
      <option value="139">Case 1</option>
      <option value="141">Case 2</option>
      <option value="142">Case 3</option>
      <option value="143">Case 4</option>
      <option value="140">Case 5</option>
      <option value="144">Case 6</option>
</select>

And I did run a test program that i found on the web to check MOZ and seems ok.

Found prefs.js
Checking if Mozrepl is installed
Mozrepl is installed already
Mozrepl is already set to auto start
Firefox is installed at the directory: C:\Documents and Settings\HP_Administrator\Application Data\Mozilla\Firefox

Any pointers to get me in the right direction will be greatly appreciated...

Link to comment
Share on other sites

Not at the puter that has this program on it...so will try the telnet command later.

How can I tell if mozrepl is running... the test program I ran said that it did... but not sure how to tell if its running with each command.

Will let you know the result of the telnet later tonight.

FF and mozrepl were recently downloaded and should be the latest version of both.. will verify the actual number version tonight.

Thanks

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...