I\'m trying to do simple click on some page element(like a btn or link).
I have wrote 2 functions for clicking via xpath and via CSS selectors.
Both of those
The problem was in security limitations of JS code.
Solution of the problem is:
Simulate click action on it with CEF:
public void MouseClick(int x, int y)
{
Browser.GetBrowser().GetHost().SendMouseClickEvent(x, y, MouseButtonType.Left, false, 1, CefEventFlags.None);
Thread.Sleep(15);
Browser.GetBrowser().GetHost().SendMouseClickEvent(x, y, MouseButtonType.Left, true, 1, CefEventFlags.None);
}