_FFClick Problem bei Wurzelimperium

  • Hi,

    habe ein Problem, was die Funktion _FFClick betrifft.

    Warum funktioniert bei Wurzelimperium auf der Hauptseite direkt nach dem Anmelden z.B. der Funktionsaufruf:

    [autoit]

    _FFClick(_FFXPath("//img[@id='hilfe']", "", 9))

    [/autoit]

    XPath = /html/body/div[@id='contentwrapper']/div[1]/div[2]/img[@id='hilfe']

    welcher auf den Hilfe-Button klickt,

    jedoch keine Klick auf die eigentliche Karte,
    z.B.: auf das erste Feld in der Karte:

    [autoit]

    _FFClick(_FFXPath("//img[@id='b1']", "", 9))

    [/autoit]

    XPath = /html/body[@id='garten_map']/div[@id='garten_map_wrapper']/div[@id='f1']/img[@id='b1']

    Hier die Log von AutoIT (Eingabe der Anmeldedaten habe ich weggelassen, da dies funktioniert:

    Spoiler anzeigen

    >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Bernd\Desktop\Autoit-TestFiles\Wurzelimperium.au3"
    __FFStartProcess: ""C:\Program Files\Mozilla Firefox\firefox.exe" -new-window "http://www.wurzelimperium.de/" -repl 4242
    _FFConnect: OS: WIN_7 WIN32_NT 7600
    _FFConnect: AutoIt: 3.3.4.0
    _FFConnect: FF.au3: 0.6.0.0b-5
    _FFConnect: IP: 127.0.0.1
    _FFConnect: Port: 4242
    _FFConnect: Delay: 2ms
    _FFConnect: Socket: 560
    __FFSend: try{window.content.top.document.browserDOMWindow}catch(e){'_FFCmd_Err';};
    __FFRecv:
    __FFSend: try{navigator.userAgent}catch(e){'_FFCmd_Err';};
    __FFRecv: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
    _FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
    __FFSendJavaScripts: Sending functions to FireFox .__FFWaitForRepl ==> MozRepl Exception: !!! [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"
    ......... done
    _FFLoadWait: . loaded in 31ms

    (...) Hier werden die LoginDaten eingetragen

    __FFSend: try{window.content.top.document.getElementById('form_login').elements.length;}catch(e){'_FFCmd_Err';};
    __FFRecv: 6
    __FFSend: try{window.content.top.document.getElementById('form_login').submit();}catch(e){'_FFCmd_Err';};
    __FFRecv:
    _FFLoadWait: ........... loaded in 2816ms
    __FFSend: FFau3.xpath=null;try{FFau3.xpath=window.content.top.document.evaluate("//div[@id='f1']/img[@id='b1']",window.content.top.document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};
    __FFRecv:
    __FFSend: try{FFau3.simulateEvent(FFau3.xpath,'MouseEvents','click');}catch(e){'_FFCmd_Err';};
    __FFRecv: -3
    _FFClick ==> No match: $sElement: FFau3.xpath
    >Exit code: 0 Time: 7.982

    Hier der Seitenquelltext:

    Spoiler anzeigen