How to retrieve HTML information about specific actions using WebDriver
As Nameless said, it won't solve the "make me an efficient XPath", etc. problem that you are talking about but you can install Selenium IDE (a FF plugin) and record your scenarios and then export them into various languages. It doesn't write the best code but you can get an idea of what it does with a quick download and install.
I'd like to reverse engineer Selenium WebDriver to write my tests for me as I use it. This would entail opening a WebDriver on screen, and clicking around and using it as normal. It will output instructions like self.driver.find_element_by_id('username-box') or whatnot for me, instead of the time-wasting of right-clicking the "Inspect element" each time I write a test.
Ideally this will give me a nice xpath which is more exact. How do I retrieve the Xpath/way to recreate actions when manually using Selenium WebDriver?