I would prefer to stay with IE since I will mix COM Interface and Java script
In the first example https://admin.typeform.com/signup website I can fill all fields with information while i can't click on the SEND button even if it is visible with an 'Inspect'.
(The 2 last lines are there 'cause I am trying different options, I execute only one of them, naturally)
Code: Select all
If !IsObject(ie)
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("https://admin.typeform.com/signup")
Sleep, 500
IELoad(ie)
WinMaximize, Sign up FREE | Typeform - Internet Explorer
Sleep, 500
Sleep, 500
IE.document.getElementById("name").Value := "Mary" ; INSERT USER ID
Sleep, 500
IE.document.getElementById("email").Value := "hello@abc.se" ; INSERT USER ID
Sleep, 500
IE.document.getElementById("password").Value := "Abc123" ; INSERT USER ID
Sleep, 500
IE.document.getElementById("terms").Click() ; INSERT USER ID
Sleep, 500
IE.document.getElementById("marketing").Click() ; INSERT USER ID
Sleep, 500
IE.document.getElementByClass("button__Button-sc-18qod6g-0 eIOrzB").Click() ; INSERT USER ID
Sleep, 500
IE.document.getElementsByClassName('btn button__Button-sc-18qod6g-0 eIOrzB')[1].Click() ; INSERT USER ID
Sleep, 500
Also I cannot see the attributes of the fields with a 'Spy' to use Com Interface.
ALSO: How can I see the SEND ("Skicka") button? I can't do an IE 'Inspect' on it.
Code: Select all
If !IsObject(ie)
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("http://hem.stamford.se/fylliettformular?lang=en")
Sleep, 500
IELoad(ie)
WinMaximize, Fyll i ett formulär | Stamford - Internet Explorer
Sleep, 500
Send, {PgDn}
Sleep, 1000
IE.document.getElementById("contact[firstName]").Value := "Mary" ; INSERT USER ID