[RESOLVED] Login to a webpage
Hello im a bit new with vb programming
i was wondering how i can login to a webpage with a button that has no id just a name
Code:
<button name="loginBtn" type="submit" class="glue primary">Login</button></p>
<div id="SMSVerifyObj"></div>
</fieldset>
</form>
<iframe id="loginIframe" name="loginIframe"></iframe>
heres what i have so far it adds my email and name to the webpage just need to make it click the login button on the page
Code:
Form1.WebBrowser1.Document.All("emailSplash").Value = "myemail"
Form1.WebBrowser1.Document.All("passwordSplash").Value = "mypassword"
this the name of the button not working any ideas?
Form1.WebBrowser1.Document.All("loginBtn").submit
Re: Login to a new myspace
Quote:
Originally Posted by
Justa Lol
could you please give a link to the site, or the whole form code?
it the new myspace update login
got the code working heres the code for clicking a button with no id
Code:
If Form1.WebBrowser1.ReadyState = WebBrowserReadyState.complete Then
Form1.WebBrowser1.Document.All("emailSplash").Value = Email.Text
Form1.WebBrowser1.Document.All("passwordSplash").Value = Password.Text
Dim oCol As IHTMLElementCollection
Set oCol = Form1.WebBrowser1.Document.All.tags("BUTTON")
For Each oelement In oCol
If InStr(oelement.className, "glue primary") > 0 Then
oelement.Click
End If
Next oelement
End If