Jump to content
Sign in to follow this  
Bert

Automate firefox

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.

Share this post


Link to post
Share on other sites

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

Where can i find this FF-Addon ?

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

hi, your FF-Page Analyzer is currently working for me.

Can you post the scripts to choose from categories?

Edited by darkescape

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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"]

Share this post


Link to post
Share on other sites

i've got the required addon for firefox but every time i load the analyser i get a connection error

[edit]

NVM noobish mistake by me

Edited by Donace

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I could use

$socket = _FFStart ("http://www.google.com")

to access google website, but I cannot use its IP address to access, such as:

$socket = _FFStart ("74.125.95.103")

But the server which I need to access doesn't have a dns name, I could only use its IP address.

Do you have any idea?

Thanks!

Edited by scdxorange

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...