all button text boxes not in place. This is how it looks like when using the webbrowser. The site in is hewbrew in some parts. For example this ??????????? ???? ????? should be hebrew i think. and you can see the text box on the left with the word text inside and not in place.
And this is how it should look like when i'm browsing regular in chrome:
This is the code how i'm navigating to the site and it's all mess:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ap
{
public partial class Form1 : Form
{
bool clickedAdd = false;
public Form1()
{
InitializeComponent();
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser2.ScriptErrorsSuppressed = true;
webBrowser1.DocumentCompleted += WebBrowser1_DocumentCompleted;
}
private void WebBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
return;
}
HtmlElementCollection items1 = webBrowser1.Document.GetElementsByTagName("span");
if (clickedAdd == false)
{
foreach (HtmlElement item in items1)
{
if (item.GetAttribute("className") == "addMessage")
{
item.InvokeMember("click");
webBrowser2.DocumentCompleted += WebBrowser2_DocumentCompleted;
try
{
clickedAdd = true;
webBrowser2.Navigate("test.com");
break;
}
catch (Exception ex)
{
string myerr = ex.ToString();
}
}
}
}
}