I am trying to get absolute XPath of an element but in Google I can find results only to get element from XPath.
IWebElement webElement = (IWebElement)((IJavaScriptExecutor)webDriver).ExecuteScript("return document.elementFromPoint(arguments[0], arguments[1])", windowPoint.x, windowPoint.y);
I can see some of the answers Want to Retrieve Xpath of Given WebElement for Java.
Can we get XPath details of an element using C# code?