Function Reference

_FFLinkClick

Simulates a click on a link.

#Include <FF.au3>
_FFLinkClick($vSearch[, $sMode = "href"[, $bLoadWait = True]])

 

Parameters

$vSearch Search term or index (0-n) of the link.
$sMode
Optional: Search mode
href= (Default) URL of the link.
text= Text of the link.
name= Name of the link.
title= Title of the link.
id= ID of the link.
index= Index (0-n) of the link.
$bLoadWait Wait until the page is loaded.
True = (Default)

 

Return Value

Success: Returns 1
Failure: Returns 0 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
3 ($_FF_ERROR_InvalidDataType)
4 ($_FF_ERROR_InvalidValue)
8 ($_FF_ERROR_NoMatch)

 

Remarks



 

Related

_FFClick, _FFImageClick, _FFImageMapClick

 

Example

#Include <FF.au3>

_FFStart("http://ff-au3-example.thorsten-willert.de/")

If _FFIsConnected() Then
	; clicks on the third (0-n) link on the page
	_FFLinkClick(2, "index")
	_FFLoadWait()
	Sleep(3000)
	; back to the last page
	_FFAction("back")
	Sleep(3000)
	; clicks on the link with the (sub)string "/index.php" in the href
	_FFLinkClick("/index.php")
	_FFLoadWait()
	Sleep(3000)
	_FFAction("back")
	Sleep(3000)
	; clicks on the link with the visible (sub)string "developer center"
	_FFLinkClick("developer center", "text")
	_FFLoadWait()
	Sleep(3000)
EndIf