Simuliert einen Klick auf einen Link
#Include <FF.au3>
_FFLinkClick($vSearch[, $sMode = "href"[, $bLoadWait = True]])
Parameters
$vSearch | Zu suchender Begriff (Substring) in $sMode, oder Index (0-n) des Links. | ||||||||||||||
$sMode |
|
||||||||||||||
$bLoadWait | Wartet bis die Seite geladen wurde. 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