Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 761 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 761 Bytes

WebSpy-for-Selenium

WebSpy eneables spying object properties for all elements available in the DOM.

HOW TO:

Copy the code from scrap5-raw.js Paste in the browser console and execute Enter page name and start spying

For chrome / Firefox : Press Ctrl +Alt + A to start spying . Select the respective location strategy and provide a name. Press Ctrl +Alt + Z to stop spying .

For IE (Edge): Do the above with developer tools enabled

Navigate to developer tools-> console to view the page objects in JSON format

Pros:

Supports recent versions of all major browsers. Auto generates Xpath for IE browser. Reduces manual effect drastically

Cons:

Cannot get element properties inside frames. Element CSS selector location strategy is not implemented.