Simulate Browsers

2,616 views

Published on

In addition to working with HTML pages, iMacros can automate Flash, Flex, Silverlight and Java applets by using Directscreen and Image Recognition Technology.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,616
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Simulate Browsers

    1. 1. Simulate User Interaction: Visual Recording and Replay
    2. 2. Classical Browser Activities <ul><li>Insert data in online forms </li></ul><ul><li>Click buttons </li></ul><ul><li>Save Pages </li></ul><ul><li>File Download </li></ul><ul><li>Image Download </li></ul><ul><li>Print </li></ul><ul><li>Clear Browser cache </li></ul>
    3. 3. Inserting Data into an Online Form:
    4. 4. Save Web Pages <ul><li>Internet Macros can save web pages in different formats: </li></ul><ul><ul><li>Complete Web Page (HTML page plus images) </li></ul></ul><ul><ul><li>Archive format (Everything in one file) </li></ul></ul><ul><ul><li>HTM only (no images) </li></ul></ul><ul><ul><li>Text </li></ul></ul><ul><ul><li>Screenshot* </li></ul></ul><ul><li>Use the “Save Page” button for all options </li></ul><ul><li>Command: SAVEAS TYPE=... FOLDER=... FILE=.... </li></ul>
    5. 5. Save Web Page Screenshot
    6. 6. File Download: <ul><li>Internet Macros automatically detects downloads. </li></ul><ul><li>Start a download while you are in RECORD mode. </li></ul><ul><li>The next time you will replay the recorded file, the download will start automatically. </li></ul><ul><li>Increase the web page timeout value as it should be enough to cover the complete download . </li></ul>
    7. 7. Automatically Downloading a File:
    8. 8. <ul><li>To download an image, switch to Record Mode. </li></ul><ul><li>Navigate to the page and select the required image in the web browser window. </li></ul><ul><li>Press &quot;Save item&quot;. </li></ul><ul><li>The item download window opens. </li></ul><ul><li>If you want the selection, press “ok”. </li></ul><ul><li>If you want to select another image, select it and the item download window is updated automatically. </li></ul>Image Downloads
    9. 9. <ul><li>The downloaded files or images are copied to the Internet Macros download directory. </li></ul><ul><li>If an image with the same name is already present in the Internet Macros download directory, Internet Macros will automatically replace it without user intervention. </li></ul><ul><li>Tip: To increase download speed, the downloaded images are taken from the browser cache (if available). If you do not want this, use CLEAR to clear the cache or use the SAVEPICTUREAS event. </li></ul>Saving Files or Images:
    10. 10. Save Image Screenshot
    11. 11. <ul><li>Internet Macros provides the feature of automatically starting printing of documents. </li></ul><ul><li>The “PRINT” command triggers a print dialog. </li></ul><ul><li>The dialog manager asks you to select a specific printer. </li></ul><ul><li>By using ONPRINT command present in the Macro you can use a printer of your choice. In the example, P=3, the third printer is used. </li></ul><ul><li>If &quot;P=&quot; with no other value, the default printer is used. </li></ul>Printing with Macros:
    12. 12. Password Security <ul><li>There are three ways to handle passwords: </li></ul><ul><li>No Encryption </li></ul><ul><ul><li>The password is stored inside the macro in plain text. </li></ul></ul><ul><ul><li>SET !ENCRYPTION NO </li></ul></ul><ul><li>Encrypted web site password: </li></ul><ul><ul><li>Passwords are encrypted by a key (&quot;Master Password&quot;) that is stored on your own computer in the Internet Macros Setting file (iim.ini). </li></ul></ul><ul><ul><li>SET !ENCRYPTION STOREDKEY </li></ul></ul><ul><li>Encrypted web site passwords AND ask for the Master Password each time the macro is run </li></ul><ul><ul><li>The Master password is not stored, but kept temporarily in memory. </li></ul></ul><ul><ul><li>You must re-enter it every time you start Internet Macros </li></ul></ul><ul><ul><li>SET !ENCRYPTION TMPKEY </li></ul></ul>
    13. 13. Choosing the Best ClickMode <ul><li>Automatic : Internet Macros attempts to choose the best recording options (recommended in most cases). </li></ul><ul><li>Use URL: The link is detected by its URL. If the URL changes each time you visit a page (“session ID”), this option is not recommended unless you replace the changing part of the URL with an &quot;*&quot;. </li></ul><ul><li>Use Name: The link is identified by its name. This works well in most cases, except when there are several links with the same name on a page. </li></ul><ul><li>Use XY: The link is identified by its position on the Web page. </li></ul><ul><li>WINCLICK : This is the ultimate solution if everything else fails and for advanced web technologies such as Java and Flash. </li></ul>
    14. 14. Demo: <ul><li>Create macro that submits a website to Google </li></ul><ul><li>Download “User Java Runtime” from http://java.sun.com/j2se/1.4.2/download.html </li></ul><ul><li>Automate a search on MSN for a fixed keyword and save the result page. </li></ul>

    ×