Jump to content

Problem (Bug?) of function _FFLinkClick() (from ff.au3)

Recommended Posts


i've a litte project at universtiy. One small part of it is a little tool for automation.

The test-webpage is http://www.igpm.rwth-aachen.de/Numa/NumaMB/

So i use Firefox / Mozrepl / FF.au3 to connect AutoIt.

The only function making trouble is: _FFLinkClick("Hinweise", "text")

This works perfect when the webpage has no frames!

Autoit is able to locate the link (Log between the midle and the end: FFRecv: http://www.igpm.rwth-aachen.de/Numa/NumaMB/numa12f.html)

but unable to klick on it. Any idea why?!

My code look like this:

#Include <FF.au3>
If _FFConnect(Default, Default, 3000) Then
     _FFLinkClick("Hinweise", "text")
  Local $error = @error
  MsgBox(1,"",$error) ;~ = 0

The Autoitlog:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "J:\studies\NumWeb.au3" /UserParams

+>14:17:18 Starting AutoIt3Wrapper v. Environment(Language:0407 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64)

>Running AU3Check ( from:C:\Program Files (x86)\AutoIt3

+>14:17:18 AU3Check ended.rc:0

>Running:(\Program Files (x86)\AutoIt3\autoit3_x64.exe "J:\studies\NumWeb.au3"

_FFConnect: OS: WIN_7 WIN32_NT 7601 Service Pack 1

_FFConnect: AutoIt:

_FFConnect: FF.au3:

_FFConnect: IP:

_FFConnect: Port: 4242

_FFConnect: Delay: 2ms

_FFConnect: Socket: 568

_FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv: Gecko/20120128 Firefox/3.6.26

__FFSendJavascripts: Sending functions to FireFox .......... done

__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//a[contains(.,'Hinweise')]",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};

__FFRecv: http://www.igpm.rwth-aachen.de/Numa/NumaMB/numa12f.html - {querySelector: function() {...}, querySelectorAll: function() {...}, scrollWidth: 196, clientLeft: 0, clientHeight: 0, clientWidth: 0, clientTop: 0, ...}

__FFSend: try{FFau3.simulateEvent(FFau3.xpath,'MouseEvents','click');}catch(e){'_FFCmd_Err';};

__FFRecv: 1

_FFLoadWait: . loaded in 10ms

[object XPCNativeWrapper [object HTMLDocument]] - {contentType: "text/html", addEventListener: function() {...}, defaultView: {...}, documentElement: {...}, setUserData: function() {...}, title: "Numerik MB", forms: {...}, ...}

+>14:17:21 AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 4.053

Please help me i don't have so much time left.

Thank You!


P.S sry for my english i'll improve it!

Link to post
Share on other sites

Hello Erik, and welcome to the forums.

I regret that I don't have the full solution for you. I've used FF.au3 etc, but only tried frames once, failed, but since then Firefox and Mozrepl have both been updated.

Have you read all of ? I know it's long but search for 'frame'. And this:

I find that I have to try different techniques, starting with the correct method and if I can't get that to work, progressively more contrived methods. e.g.

- read all the data (href?) from xpath calls, construct the target url in a variable, and open it.

- read the whole page's html, extract target url...

- read the coordinates of the link, and MouseClick it.

I hope this helps.


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...