I a demonstration I tried to develop a test that logs in to Google, i failed ;-)...
The code does this (for the German Google, you may need to replace strings...)
{noformat}
selenium.open("
http://www.google.de");
selenium.click("link=Anmelden");
selenium.waitForPageToLoad(DEFAULT_SELENIUM_TIMEOUT);
selenium.typeKeys("id=Email", login);
selenium.typeKeys("id=Passwd", password);
selenium.click("signIn");
selenium.waitForPageToLoad(DEFAULT_SELENIUM_TIMEOUT);
{noformat}
Sadly after the click on "Anmelden" (Login) nothing happens, the "waitForPageToLoad" waits and timeouts.