; title of the current page
$sTitle = _FFCmd( ".title")
;If Not @error Then MsgBox(64,"Title of the current page:",$sTitle)
if $sTitle <> "UserMgmtView.htm" Then
SetError (1)
EndIf
$cell = _FFTableGetCell("Users", 2, 2, "id")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $cell = ' & $cell & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
$val = _FFXPath ("/html/body/form[@id='Form1']/center/table[@id='Users']/tbody/tr[2]/td[2]")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $val = ' & $val & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
shows this console output:
__FFRecv: UserMgmtView.htm
__FFSend: try{content.document.getElementsByTagName('tbody')['Users'].getElementsByTagName('tr')[2].getElementsByTagName('td')[2].textContent;}catch(e){'_FFCmd_Err';};
__FFRecv: _FFCmd_Err
_FFCmd ==> Error return value: _FFCmd_Err
@@ Debug(132) : $cell =
>Error code: 8
__FFSend: FFau3.xpath=null;try{FFau3.xpath=window.content.frames[2].document.evaluate("/html/body/form[@id='Form1']/center/table[@id='Users']/tbody/tr[2]/td[2]",window.content.frames[2].document,null,XPathResult.STRING_TYPE,null).stringValue;}catch(e){'_FFXPath_Error: '+e;};
_FFTableGetCell ==> No match: Table/Column/Row: Users/2/2
__FFRecv: us0
@@ Debug(135) : $val = us0
>Error code: 0
Hello,
the only thing I see, is that
_FFTableGetCell("Users", 2, 2, "id")
and
_FFXPath("//table[@id='Users']//tr[2]/td[2]")
aren't the same cells, because the index in XPath is from 1-n and in HTML from 0-n
so
_FFTableGetCell("Users", 1, 1, "id")
should work.
@toader:
OMG more bugs then HTML on this page and you must disable all security addons to get it to work

But it works: (you must have the latest version of the FF.au3 - 0.5.3.8b)
If _FFFrameEnter
("JABBIFYNAME","name") Then
$sName = "test"
$sObj = _FFXPath
("//div[@id='jabbify']//form/input","",9)
_FFObj
($sObj, "value", $sName)
_FFDispatchKeyEvent
($sObj, 13) ; pressing "enter" on the input-field
; or a little bit different
$sText = "it works ..."
_FFXPath
("//div[@id='jabbify']//textarea","value='" & $sText & "'",9)
_FFDispatchKeyEvent
(".getElementsByClassName('jab_textarea')[0]", 13)
_FFFrameLeave
()
EndIf
bad example

Normaly it looks much simpler. E.g. if you wanna use the search feature on this page:
#include <FF.au3>
If _FFConnect
() Then
_FFSetValueById
("s", "TextToSearch")
_FFFormSubmit
()
EndIf
Edited by Stilgar, 04 September 2009 - 09:51 AM.