1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Quick question (set attribute)

Discussion in 'Visual Basic .NET' started by Fadi946, Jan 5, 2012.

  1. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    Hey! I'm making a YouTUbe account creator bot.. but I'm having a small problem with setting the "Month" to "March" and the "Gender" to "Male"
    Here is the link to the registiration page:
    https://accounts.google.com/SignUp?...S&new=true&ltmpl=sso&service=youtube&hl=en_US

    Here is what I wrote: Please fix me!

    Code:
                WebBrowser1.Document.GetElementById("BirthMonth").SetAttribute("id", ":3")  WebBrowser1.Document.GetElementById("Gender").SetAttribute("id", ":c")
    
    Thanks!
     
  2. trolol

    trolol Newbie

    Joined:
    Jun 24, 2011
    Messages:
    38
    Likes Received:
    5
    Location:
    Somewhere where the chocolate is the best!:)
    change the "id" to "value", and then "1" for january,...
     
  3. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    Already tried that.. it doesn't work.
    Check the link of YouTube I posted above to check their code..
    I really need it to know how to do it! Thanks for answering though!
     
  4. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    Still no answer? Sorry for bumping but I still really need it!
     
  5. trolol

    trolol Newbie

    Joined:
    Jun 24, 2011
    Messages:
    38
    Likes Received:
    5
    Location:
    Somewhere where the chocolate is the best!:)
    I'm actually curious aswell:)
     
  6. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    Still no one? :(
     
  7. shubhamm

    shubhamm Junior Member

    Joined:
    Jan 25, 2010
    Messages:
    107
    Likes Received:
    25
    Occupation:
    Developer
    Location:
    BHW
    Can Easily be Done by HttpWebRequest because it will send the request to Register and you Use Combobox for Months and change the Value in Webrequest...
     
  8. Psychop1

    Psychop1 Registered Member

    Joined:
    Jul 30, 2010
    Messages:
    63
    Likes Received:
    19
    Try id="HiddenBirthMonth" and value="03"