title: Want to Retrieve Xpath of Given WebElement
body: <p>Using Selenium WebDriver, I am having a list of all web elements in the page. I want to write one function which will return me the XPath string of passed element.</p>
  
  <p>Call for Function will be like:-
  <code>String XpathOfElement = myWebDriver.getXpath(My_Web_Element)</code></p>
  
  <p><strong>Hint</strong> :- I think we can use javascript(using JavaScriptExecuter). But not familiar with javascript.</p>