Jump to content

Automate firefox


Bert
 Share

Recommended Posts

Result of my script :

_FFConnect: IP: 127.0.0.1

_FFConnect: Port: 4242

_FFConnect: Connection Delay: 6ms

_FFConnect ==> Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242

Can you help me and saying how can I find the write Port.

Thanks in advance

You must have the FF-Addon MozLab ("MozRepl") installed and started, before you can use it.

Link to comment
Share on other sites

  • Replies 251
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I'm sorry I haven't time to do the english translation. :P

But I completed the german one and I think the english "google" translation is readable, too :P

FF.au3 Documentation

and I've added support for frames:

FF.au3

and a tool to analyze the forms and links of a page:

Posted Image

with this you can create commands (or a simple script), too.

FF-Page Analyzer

Stilgar

your analyzer isnt working ;/

atleast for me, i can click the linkbar or add links to there...

Link to comment
Share on other sites

I have a problem to works on a form with an imput type=file and firefox

I have find it with IE but not with firefox

ex in IE

Assign input focus to the field and then send the text string

$fichier = _IEFormElementGetObjByName($form, "nomFic")

_IEAction($fichier, "focus") ; put focus on input type="file"

$hie = _IEPropertyGet($oIE, "hwnd") ; take the hwnd of the windows

ControlSend($hie, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", StringUpper($file1), 1)

;finally send to the control

Is someone know how to do the same with firefox

__FFRecv: !!! [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "XPCSafeJSObjectWrapper.cpp Line: 445"]

Edited by LOULOU
Link to comment
Share on other sites

It was the first UDF I found in autoit german forum when I signed it :P

Actually I'm using for automation of our (company) plugin test.

Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to comment
Share on other sites

It was the first UDF I found in autoit german forum when I signed it :P

Actually I'm using for automation of our (company) plugin test.

Can you help me ? and giving the adress where to find an example.

Thanks in advance

Link to comment
Share on other sites

Can you help me ? and giving the adress where to find an example.

Thanks in advance

Use "_FFSetValueByName" function :P

Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to comment
Share on other sites

Use "_FFSetValueByName" function :P

It"s not possible because wiyh this function i have a security message error

__FFRecv: !!! [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "XPCSafeJSObjectWrapper.cpp Line: 445"]

Link to comment
Share on other sites

  • 2 weeks later...

Ok, I see that you added the frame support, but there is no documentation and I cannot seem to get it to work.

I decided to use it on one of my old myspace bots, and I tried to change it from using my old method of having the window sized exactly and hidden, and using the control commands.

I can get into the app perfectly, easier then the hours it first took me, but when I get to the app window, and it pulls up the app's frame, I cant get into it. I am simply searching for a term inside it the frame "REFRESH" in this case, and trying every single frame ID possible.

Something like this:

MsgBox(0,_FFFrameSelected($Socket),_FFAction($Socket,"search","REFRESH"))
    _FFFrameEnter($Socket, 1)
    _FFClickLink($Socket, "REFRESH", "text")
    _FFClick($Socket, "Missions", "text")
    MsgBox(0,_FFFrameSelected($Socket),_FFAction($Socket,"search","REFRESH"))
    _FFFrameEnter($Socket,2)
    _FFClickLink($Socket, "REFRESH", "text")
    _FFClick($Socket, "Missions", "text")
    MsgBox(0,_FFFrameSelected($Socket),_FFAction($Socket,"search","REFRESH"))
    _FFFrameEnter($Socket,3)
    _FFClickLink($Socket, "REFRESH", "text")
    _FFClick($Socket, "Missions", "text")
    MsgBox(0,_FFFrameSelected($Socket),_FFAction($Socket,"search","REFRESH"))
    _FFFrameEnter($Socket,4)
    _FFClickLink($Socket, "REFRESH", "text")
    _FFClick($Socket, "Missions", "text")
    MsgBox(0,_FFFrameSelected($Socket),_FFAction($Socket,"search","REFRESH"))
    _FFFrameEnter($Socket,5)
    _FFClickLink($Socket, "REFRESH", "text")
    _FFClick($Socket, "Missions", "text")
    MsgBox(0,_FFFrameSelected($Socket),_FFAction($Socket,"search","REFRESH"))

But the clicks do not happen and the search always returns false.

Any ideas?

Link to comment
Share on other sites

The current documentation is here:

FF.au3 documentation

The _FFClickLink($Socket, "REFRESH", "text")

searches the link "text" and clicks on it.

_FFClick($Socket, ...) works only with the DOM-Object e.g.

_FFClick($Socket, ".links[0]")

If you can show me a sample page I can help you more.

Edited by Stilgar
Link to comment
Share on other sites

  • 4 weeks later...

Hey Stilgar,

I have a question regarding the _FFSetValueByName. How can I successfully use it on a page that has multiple forms.

I used it on a page with only one form (forms[0] only form there) without issues, however it doesn't seem to work when there are multiple forms.

Am I doing something wrong or is there a different way of setting the value of an element when there are multiple forms. Perhaps I have to select the specific form ?

Cheers.

Link to comment
Share on other sites

THe RegExp in __FFisURL doesn't accept IPs. You need to change it :)

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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