Jump to content

IE Dropdownlist Selection


Recommended Posts

I was just going to make a GUI for the creation of a Youtube Channel, but I can't figure out how to select an Item from the Dropdownlist on this page: 

https://www.youtube.com/create_channel?action_create_new_channel_redirect=1

I think you have to be logged in with a Google Account, this is the important part (I think it is) from the Code:

<span  id="PlusPageCategoryHolder" >
  <select id="PlusPageCategory" name="PlusPageCategory">
  <option  value="" >Kategorie auswählen</option>
  <option  value="BRAND" >Produkt oder Marke</option>
  <option  value="COMPANY" >Unternehmen, Einrichtung oder Organisation</option>
  <option  value="ENTERTAINMENT" >Kunst, Sport oder Unterhaltung</option>
  <option  value="OTHER" >Sonstiges</option>
  </select>
  </span>

EDIT: I just noticed if I select ENTERTAINMENT Option (= "Kunst, Sport ...") the HiddenPlusPageCategory seems to look like that:

<input value="ENTERTAINMENT" id="HiddenPlusPageCategory" name="PlusPageCategory" type="hidden">

But I can't change it like this:

$oIE = _IECreate("https://www.youtube.com/create_channel?action_create_new_channel_redirect=1", 0, 1, 1, 0)
    $oDropDown = _IEGetObjById($oIE, "HiddenPlusPageCategory")
        _IEFormElementSetValue($oDropDown, "ENTERTAINMENT")

 

Edited by WannaBeGut
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...