Seems like i need to do that by JavaScript and execute it by EvaluateScriptAsync but honestly i don't have enough knownladge about JS.
I've found https://stackoverflow.com/questions/8813051/determine-which-element-the-mouse-pointer-is-on-top-of-in-javascript
All i need to do is just
- Code: Select all
const string script = @"(function(e)
{
var x = e.clientX, y = e.clientY,
elementMouseIsOver = document.elementFromPoint(x, y);
return elementMouseIsOver;
})();";
browser.EvaluateScriptAsync(script).ContinueWith(x =>
{
var response = x.Result;
if (response.Success && response.Result != null)
{
MessageBox.Show("okey");
}
});
But i got
- Code: Select all
[0826/184733.022:INFO:CONSOLE(1)] "[bugsnag] Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z", source: https://app.tandem.net/_next/static/chunks/bed339dcc5b6a6f8ee4da828fdcf75864c6e5c8c.65bc411a200287b1c573.js (1)
[0826/184733.022:INFO:CONSOLE(3)] "Uncaught TypeError: Cannot read property 'clientX' of undefined", source: about:blank (3)
Also i've tried to inject that JS into website by Chrome ext. it doesn't give me href link, it just returns me
- Code: Select all
[object HTMLImageElement]