I'm trying to execute some piece of javascript in my awesomium WebControl wb
.
An element exampleDiv
shall be clicked when the user clicks on a button on my GUI.
private void button_Click(object sender, RoutedEventArgs e)
{
if (wb.IsDocumentReady)
{
wb.ExecuteJavascript("document.getElementById('exampleDiv').click();");
}
}
If I execute this piece of javascript in Chrome everything works fine.
If I execute this in awesomium nothing happens.
Simple things like alert('Hello');
works fine but I didn't get anything else to work.
I also found this article executing javascript in awesomium to click on a div but it didn't help too.
I'm using the latest awesomium build (1.7.3).