Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 13:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



need help with getting element

Discussion on need help with getting element within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
need help with getting element

so there is 2 problems.

first problem

i try to get element id by using class here is code what i use:
Code:
  Private Sub Button5_Click(sender As System.Object, e As System.EventArgs) Handles Button5.Click
Dim PageElement As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("span")
        For Each CurElement As HtmlElement In PageElement
            If (CurElement.GetAttribute("className") = "request_badge_button") Then

                MsgBox(CurElement.GetAttribute("id"))
            End If


        Next
    End Sub
problem is that it finds and works when you are not logged into the website but when you are it won't work. and i need it to work when you are logged in.
here is website.


second problem is that i also can't click button with .invokemember("click") using id you can find from source of the link i gave right next to the class="request_badge_button" when i am logged into website soo that is problem aswell.

please help me.

also tryed with webkit browser still same problem code i used:
Code:
Private Sub Button5_Click(sender As System.Object, e As System.EventArgs) Handles Button5.Click
        Dim ElementListe

        ElementListe = WebKitBrowser1.Document.GetElementsByTagName("span")

        For Each Element In ElementListe
            ListBox3.Items.Add(Element.GetAttribute("class"))
            If Element.GetAttribute("classname") = "request_badge_button" Then

                MsgBox("found")
            End If
        Next


    End Sub
sander2828 is offline  
Reply


Similar Threads Similar Threads
div element
07/11/2012 - Web Development - 2 Replies
hey, ich hab wieder mal ein problem :DD <div class="register form" style="display: table; #position: relative; overflow: hidden; margin:auto"> <div style=" #position: absolute; #top: 50%;display: table-cell; vertical-align: middle;"> <div class="reg one"><b>Ihre Email-Adresse</b><hr /> <div class="reg two">Email-Adresse</div> <div class="reg two"><input type="text" name="email" /></div> <div class="reg three">Email-Adresse wiederholen</div>
Element
08/07/2011 - GunZ - 0 Replies
wie ändere ich das element bei dem sword?
element-.-
05/14/2011 - Metin2 Trading - 0 Replies
Hat denn keiner von euch z.B. ss+9 oder gpp+9 auf element mt2??. . wenn doch hier schreibn^^
Element mt2 ..
05/14/2011 - Metin2 Trading - 2 Replies
Hey.. ich suche auf element mt2 sachen.. Gebe 10€ psc



All times are GMT +1. The time now is 13:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.