applescript getElementsByName in Chrome
Google Chrome is scriptable through the Chromium suite—the execute method is what you're looking for. Here is an example of your code, re-written for Chrome:

tell application "Google Chrome"
    execute front window's active tab javascript  "document.getElementsByName('0.7.7.7.7.7.5')[0].value=" &amp; quoted form of theProfil &amp; ""
    delay 0.1
    execute front window's active tab javascript "document.getElementsByName('0.7.7.7.7.1.7')[0].click();"
end tell


See this question on Stack Overflow for reference, or consult the Google Chrome AppleScript dictionary (in Script Editor, click File > Open Dictionary… and choose Google Chrome).