What Java/Selenium commands can I use to capture/get/output for all elements and associated element locators for a single webpage? The Selenium IDE allows you to inspect one element at a time. That is a problem if you have thousands of elements to automate. Is there a tool or Java/selenium command that I can use to get all of the objects/elements on my web page at once and then maybe customize the output to suite my needs? If you have any experience with SilkTest, I'd like something analogous to generating Window Declarations in SilkTest. SilkTest's Record Window Declaration tool captures tag/property/locator information for all of the objects/elements on a page and allows you to paste the code to your library or include file. So with one or two clicks I can capture and define dozens of objects in SilkTest. Is there a tool or command that does something similar for Selenium? I'm using Java so I'd like any examples in Java. Thanks.
Using findElementsByXPath and specifying 'All elements' worked for me. E.g.
findElementsByXPath("//*")