mixing
Regular Member
- Jan 18, 2014
- 412
- 63
Hey everyone, hopefully someone here can give me a little hand with a roadblock I just can't seem to get past. I'm writing a small xVideos bot that will comment on videos. I can get the videos just fine and I can get to the comment box, I can even press the button to post the comment. However, no matter what I try I cannot paste any text into the textarea for it!
Here is a snippet of the code from their website
and here are things I've already tried that haven't worked..
any help would be greatly appreciated. Maybe someone on this board has made on before and can tell me what I'm doing wrong... Thanks!
Here is a snippet of the code from their website
Code:
<input type="hidden" value="998862d37d6b8b42d2wqbhpqbmwyuegS3CDvB0qzMogbiMoyuRDMZZnXKJ6_EcHXeYg_lM7LJ3ihCF7K6r_vD49veT1IV6tVk4uaUILf8ha_4cNit_0DpGvYEbo=" name="post[csrf_token]" id="post_csrf_token">
<div class="form-group form-field-post_text">
<div class="content col-sm-12 col-sm-offset-0" style="position: relative;">
<textarea class="form-control validator-error" placeholder="Write your message" name="post[text]" required="required" id="post_text" style="display: none;"></textarea>
<div id="post_text_emoji">
<div class="emojionearea form-control validator-error" role="application">
<div class="emojionearea-editor" placeholder="Write your message" tabindex="0" spellcheck="true" autocorrect="on" autocomplete="on" contenteditable="true"></div>
and here are things I've already tried that haven't worked..
Code:
wb.Document.All("textarea").InnerText = myString
and
wb.Document.All("post_text").InnerText = myString
and
wb.Document.GetElementById("post_text").InnerText = myString
and
wb.Document.GetElementByID("post_text").InnerHtml = myString
and
Dim theElementCollection As Windows.Forms.HtmlElementCollection
theElementCollection = wb.Document.GetElementsByTagName("textarea")
For Each curElement As HtmlElement In theElementCollection
If curElement.GetAttribute("classname") = "form-control validator-error" Then
curElement.Focus()
curElement.SetAttribute("value", myString)
End If
Next
any help would be greatly appreciated. Maybe someone on this board has made on before and can tell me what I'm doing wrong... Thanks!