Hey,
ich habe folgendes bizarres Problem.
Ich kann _FFLinkClick ine meinen Scripten jeweils nur einmal verwenden.
Hier mal ein Beispiel:
[autoit]
#include<FF.au3>
#include<FFEx.au3>
_FFConnect()
_FFStart("http://de.wikipedia.org/wiki/Hyperlink")
_FFLinkClick("Querverweis","text") ;<---- Funktioniert
_FFLinkClick("Text","text") ;<----- Funktioniert nicht....
Das steht in der Console:
Spoiler anzeigen
Code
_FFConnect: OS: WIN_7 WIN32_NT 7600
_FFConnect: AutoIt: 3.3.6.1
_FFConnect: FF.au3: 0.6.0.1b-3
_FFConnect: IP: 127.0.0.1
_FFConnect: Port: 4242
_FFConnect: Delay: 2ms
_FFConnect: Socket: 568
_FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1) Gecko/20090624 Firefox/3.5
__FFSendJavaScripts: Sending functions to FireFox .......... done
__FFStartProcess: ""D:\Program Files\Mozilla Firefox 3.5\firefox.exe" -new-window "http://de.wikipedia.org/wiki/Hyperlink" -repl 4242
_FFConnect: OS: WIN_7 WIN32_NT 7600
_FFConnect: AutoIt: 3.3.6.1
_FFConnect: FF.au3: 0.6.0.1b-3
_FFConnect: IP: 127.0.0.1
_FFConnect: Port: 4242
_FFConnect: Delay: 2ms
_FFConnect: Socket: 588
_FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1) Gecko/20090624 Firefox/3.5
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 11ms
__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//a[contains(.,'Querverweis')]",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};
__FFRecv: http://de.wikipedia.org/wiki/Querverweis — {getAttribute: function() {…}}
__FFSend: try{FFau3.simulateEvent(FFau3.xpath,'MouseEvents','click');}catch(e){'_FFCmd_Err';};
__FFRecv: 1
_FFLoadWait: .. loaded in 279ms
__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//a[contains(.,'Text')]",FFau3.WCD,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
Alles anzeigen
Mach ich irgendwas Falsch? Hab mich länger nicht mehr mit der FF.au3 auseinandergesetzt.
Hab FF 3.5 (extra die 3.6er deinstalliert (bei der es auch nich funktioniert hat, weil ich iwo gelesen hab, dass die nich kompatibel is) und Windows 7 x86.
Regards