Results 1 to 2 of 2
  1. #1
    xMallesco's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Unhappy GetElementsByClassName [HELP]

    Hello!

    I'm developing an application for myself and I'm having a problem can anyone help me?
    I have a module

    Code:
    Module Extensions
        <Runtime.CompilerServices.Extension()> _
        Public Function GetElementsByClassName(ByVal Source As HtmlDocument, ByVal ClassName As String) As HtmlElement()
            Dim output As New List(Of HtmlElement)
            For i As Integer = 0 To Source.All.Count - 1
                Try
                    If (Source.All(i).GetAttribute("className") = ClassName) Then
                        output.Add(Source.All(i))
                    End If
                Catch ex As Exception
    
                End Try
            Next
            Return output.ToArray()
        End Function
    End Module

    Anyway, the problem is that I need to get more than one class in a single row.
    I have the following code plus is returning error

    Code:
     Dim app As HtmlElement = WebBrowser1.Document.GetElementsByClassName("pid-1-high" & "pid-1-ask & pid-1-ask2")(0)

    I want to add this class automatically in a listview

    Code:
       Dim z As ListViewItem
            z = New ListViewItem(app.GetAttribute("InnerText"))
    Can someone help me? Thank you

  2. #2
    xMallesco's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Can someone help me ?

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 06:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM