AppleScript Formular ausfüllen

Das Problem, das ich habe, macht mich krank. Ich arbeite an einem Applescript, das eine Aktion auslöst, um das Formular auszufüllen. Ich glaube, ich habe ein Problem, während es wartet, bis die Site zu 100% geladen ist. Das Skript aktiviert die Site, füllt jedoch die Formulare nicht aus. Bitte navigieren Sie mich und helfen Sie, dieses faule Skript zu erarbeiten:

tell application "Safari"
set loginurl to "http://www.dogomania.pl/forum/register.php"
set mylogin to "worker100"
set mypassword to "blackie698"
tell application "Safari"
    make new document at end of documents
    set URL of document 1 to loginurl
    delay 4
    do JavaScript "document.forms['regusername']['username'].value = '" & mylogin & "'" in document 1
    do JavaScript "document.forms['password']['password'].value = '" & mypassword & "'" in document 1
end tell

Ende erzählen

Antworten auf die Frage(1)

Ihre Antwort auf die Frage