give focus () or click () on a text field webview C #

0

I am developing a webbrowser in UWP (windows universal application) using the C # language, to assign value to a text field that is in the webview I used the following script:

string functionString = String.Format("document.getElementById('chatMessageSend').innerText = '{0}';", textbox.Text);
await Webview_uol.InvokeScriptAsync("eval", new string[] { functionString });

In the HTML page what I have is this:

<div id="chatMessageSend" data-joyride="data-joyride" ng-model="text" name="text" bp-textarea="bp-textarea" contenteditable="true" tabindex="1" class="ng-valid ng-dirty"></div>

But since the site uses NG-click() or angularjs if I'm not mistaken, I can not at all give focus() or even click() in the text field. The field only validates to click if in fact I use the mouse, via code is not working, can anyone help me with this?

The site is chat ool, in this specific room: link After entering my program you have to send a message to the chat room, I can already fill the field and until clicking in the button, but the message does not go because it needs some type of validation which I still can not do ...

    
asked by anonymous 22.06.2017 / 23:20

0 answers