Hello Welcome to Selenium tutorial,Today I found one very nice plugin for Selenium Webdriver
It support for support only 🙁
Plugin Name-WebDriver Element Locator
This plugin generate different xpath using xpath method and technique.
This plugin will generate xpath for C#, Java, Python, Ruby.
Download- Selenium Xpath Plugin
Download this plugin for firefox >Navigate to below url
Click on Add to firefox and wait till the completion then it will ask for restart.
After restart when you right click on some element.
Now you can navigate to any element and right click on that element this will generate xpath for that element.
Hope so this plugin will help you. I used to struggle while finding xpath now I can take help of this plugin to generate.