Why ?
Rather than continue to hijack other threadswith this subject or continue already badly maintained threads that weren’t really set for this subject I have decided to start this thread. Its purpose is to create useful tools for web based automation developers. a tool kit that will consist of the following tools
If you find this tool usefull and want me to add features i have to be able to afford not to have to work over time. you can help here
Secure paypal link
I will Split a portion of any donations with Jethrow and Sinkfaze.
[*:1yk45m8t]iWebBrowser2 Learner Build ID:2.5 - This tool is under major development effort due to recent interest by serious members of the forum. This is intended to eventually turn into a web simple script writer much like the packaged script recorder for other applications
[*:1yk45m8t]iWeb Functions - Library that relieves the user of intimate understanding of DOM, COM, or JavaScript to control a web siteUpdate from Jethrow 2/19/2011
I updated my compact version of iWebBrowser2 (iWB2) Learner. Here are the main updates:[*:1yk45m8t]Updated to work with Native COM. Now uses Sean's ComUtils[*:1yk45m8t]Added a Menu Item: Show Parent Structure[*:1yk45m8t]Show Parent Structure shows the parent Nodes in a second GUI. Double Clicking an item will highlight the element for a moment. You can copy an element's id/name via Right-Click[*:1yk45m8t]The application now Calculates the Tag Index (in the "document.all.tags(tagName)" collection) after searching the webpage with the Cross Hair. It is calculated when the LButton is released. The index is shown in the WinTitle, next to the tag name.I'm open to any feedback. Here's the iWB2 Learner Download.
I rewrote my Compact iWebBrowser2 Learner script for AHKL. Here's the link if you want to check it out. The primary changes:[*:1yk45m8t]Removed ~LButton Hotkey. Now tests if the A_GuiEvent = "Normal"[*:1yk45m8t]Grouped similar variables into an arrays[*:1yk45m8t]Made the Outline an object[*:1yk45m8t]Used FileInstall to embed Cross-Hair images in .exe
The tool will be designed so that users who know little more than the following can create web automationI've already done a re-write of the original iWeb functions (adding a few of my own) for AHK_L.
At minimum the user should know how to create
[*:1yk45m8t]scripts
[*:1yk45m8t]hotkeys
[*:1yk45m8t]write functions
[*:1yk45m8t]Understand the concept and use of the standard library
What should you post in this thread?
Code changes
[*:1yk45m8t]Proposed changes with comments in code
[*:1yk45m8t]Reason why the code change suggested have globally useful implications[*:1yk45m8t]Proposed code changes should be easy for intermediate AHK scripter to use
[*:1yk45m8t]Service the end goal of creating a useful simple web based script writer
[*:1yk45m8t]Structured, clean, plain language documentation on the use of iWeb functions. Please hold documenting the recorder till it is in a more final design
What should you not post in this thread?
[*:1yk45m8t]Questions about how to use the recorder?
[*:1yk45m8t]Bugs without proposed fix
[*:1yk45m8t]Questions about syntax
I will post an example of a real world deployment of a web based application that fires command line driven scripts
An example usage of the iWeb functions to demonstrate real world automation needs
Real world example usages
[*:1yk45m8t]Open a new browser
[*:1yk45m8t]Reuse an already open browser
[*:1yk45m8t]Use browser pointer to navigate
[*:1yk45m8t]Wait for navigation to complete
[*:1yk45m8t]Use a browser pointer to fill out and submit a form
[*:1yk45m8t]Use a browser pointer to search the page for specific text in a link and click it
[*:1yk45m8t]Search dynamic content and return an element with an offset
[*:1yk45m8t]Read/write value of global variables already in existence in the page
[*:1yk45m8t]Modify the browser properties
The recorder should be designed to support Scripter’s who intend to create applications with the above guidelines
A screen shot of the tool in use
This tool is based on Sean’s IE HTML Element Spy
Sinkfaze is responsible for some of the features being added
Special thanks to
Sean for COM
Jethrow for the Excellent tutorial he wrote for new members
Sinkfaze for suggestions and some changes to the tool to date
Jethrow, Sinkfaze, and Sean, for the most excellent work in the forum helping users with code problems
Honorable mention of ahklerner who though I havent seen him active in some time actually wrote the function (IE_InjectJS) that got me interested in this subject