Jump to content

Gmail input boxes

Recommended Posts

ok... so i have an object $IE... and i'm trying to login to Gmail but i have no idea what the form names are, any help?

This is what i came up with so far:

$IE.window.gaia_loginform.Email.value = $user
   $IE.window.gaia_loginform.Passwd.value = $pass
   $IE.window.gaia_loginform.click ()

But it's not right... it's gaia_loginform something something... argh.

Matt :(

Edited by logikal16
Link to comment
Share on other sites

looks to me like the username box is named "Email" while the password box is named "Password". you have passwd in your script, so mabey thats the problem. where did you get gaia from?

edit: i looked at the wrong name. the password box's name is Passwd.

Edited by yummy22543
Link to comment
Share on other sites

right... and the form name that you have to type within is called gaia_loginform... so you must add that before you use Email or Passwd, but that alone doesn't work, there's something that goes before it (besides window.) and it's freakin frustrating.... argh

Link to comment
Share on other sites

  • 8 months later...
  • Moderators

Sorry to bring this post back from the dead, but I figured it out.

This script will login to gmail:

#include <IE.au3>

; Create a browser window and navigate to gmail
$oIE = _IECreate()
_IENavigate($oIE, "http://mail.google.com")

; get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByName($oIE, "gaia_loginform")
$o_login = _IEFormElementGetObjByName($o_form, "Email")
$o_password = _IEFormElementGetObjByName($o_form, "Passwd")

; Set field values and submit the form
_IEFormElementSetValue($o_login, "your username")
_IEFormElementSetValue($o_password, "your password")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...