Search code examples
c#vbulletin

Can't fill box with webbrowser


This is the box I want to fill:

<textarea name="message" id="vB_Editor_001_textarea" rows="10" cols="60" style="display: block; width: 380px; height: 250px; " tabindex="1" dir="ltr"></textarea>

It's a PM box in a forum, it's the body to be specific, all the other fields are fill-able:

wb1.Document.GetElementById("recipients").SetAttribute("value", "HAHA");
wb1.Document.GetElementById("title").SetAttribute("value", "HAHA");

but I can't find a way to fill this one.

The forum is vBulletin.


Solution

  • It looks like the box is getting an auto-generated ID. Try accessing it with the id you see from it (vB_Editor_001_textarea), otherwise, try finding it not by id but perhaps by name?

    document.getElementByName()