Rich InAdvanced Web Browser Automation

  • 1,595 views
Uploaded on

Advanced Web Browser Automation

Advanced Web Browser Automation

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,595
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
26
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Automating and Testing Feature-Rich Web Pages
  • 2. Automating Web Pages
    • Frames
    • Multiple Browser Windows („Popups“)
    • Dialog boxes of all kinds
    Many web pages contain elements to help them organize their content better. These elements have in common that they are an additional challenge to web page automation.
  • 3. Frames
  • 4. Frames
    • FRAME F=<x>
    • Number <x> depends on the position of the frame in the object tree of website
    • FRAME F=0 is used for the frame page itself or when switching to a website without frames
    Internet Macros recognizes frames automatically:
  • 5. Demo
    • iOpus Test
    • http://www.iopus.com/iim/demo/v6/frames/
    • Real World Example
    • Frames: www.orbitz.com
  • 6. Popups (More than one web page open at the same time)
  • 7. Popups
    • Internet Macros handles frames automatically
    • TAB T=<x> command
    • Number depends on the position of the window in the tab order. This might depend on history
    • Related commands are
    • TAB OPEN
    • TAB CLOSE
    • TAB CLOSEALLOTHER
  • 8. Demo
    • iOpus Test Page
    • http://www.iopus.com/iim/demo/v6/popup/
    • Real World Example
    • http:// www.fool.com/calcs/calculators.htm (Opens calculator in second page)
  • 9. Dialogs
  • 10. Dialog examples
  • 11. Javascript Dialogs
        • ONDIALOG POS=<x> BUTTON=… CONTENT=…
    • POS is used when many dialogs occur directly after each other. Specify a specific decision for each dialog (POS=1 is first dialog, POS=2 is second dialog.)
    • CONTENT is used to fill out a Javascript PROMPT dialog.
    • Extract the text of a dialog with SET !EXTRACTDIALOG YES
  • 12. Login Dialog
    • ONLOGIN USER=username PASSWORD=password
    • The password is stored with the method you selected on the SECURITY tab of the options dialog. More details about the different password storage options later.
  • 13. Download Dialog
    • ONDOWNLOAD FOLDER=* FILE=+_{{yyyyymmdd_hhnnss}}
    • The general web page timeout also applies to downloads. If needed, you can also increase the timeout value inside the macro with SET !TIMEOUT
  • 14. Download File Settings
    • FOLDER Settings:
    • Empty or (&quot;*&quot;) => default folder or the absolute path to a folder,
    • FILE Settings:
    • Example: You want to download a file with the file name &quot;stockreport.pdf&quot;
    • If you use &quot; FILE=* &quot; you get &quot; stockreport.pdf &quot;
    • If you use &quot; FILE= Intel &quot; you get &quot; Intel .pdf &quot; (the original file extension is always preserved)
    • If you use &quot; FILE=+ Intel &quot; you get &quot; stockreport Intel .pdf &quot; (&quot; + &quot; means, that the text is appended to the original file name)
    • If you use &quot; FILE=+ _{{!NOW:YYYYMMDD_hhmmss}} &quot; you get &quot; stockreport_ 20040525_141030 .pdf &quot;
  • 15. Security Dialog
    • ONSECURITYDIALOG BUTTON=YES CONTINUE=YES
    • While testing web sites, you may want the macro to stop and report the security dialog to you. In this case, please use CONTINUE=NO
  • 16. Certificate Dialog
    • ONCERTIFICATEDIALOG C=<x>
    • Some secure web pages ask you to select a client side certificate.
  • 17. Error Dialog
    • ONERRORDIALOG BUTTON=YES CONTINUE=YES
    • While testing web sites, you may want the macro to stop and report the security dialog to you. In this case, please use CONTINUE=NO
  • 18. Web Page Dialog
    • ONWEBPAGEDIALOG KEYS=Hello{ENTER}{CLOSE}
    • Since web page dialogs can contain any number of buttons or boxes, this dialog is automated by sending a specific list to keyboard commands to them. Internet Macros has a wizard for testing the command.
    Web page dialogs are similar to standard JavaScript dialogs, but display HTML content instead.
  • 19. Web Page Dialog Recording Screenshot
  • 20. Demo
    • iOpus Test Pages:
    • http://www.iopus.com/iim/demo/v6/dialogs/javascript.htm
    • http://www.iopus.com/iim/demo/v6/dialogs/html/
    • Real world examples:
    • Security dialog: https:// forum.raidenftpd.com/showflat.php?Board = general&Number =40306
    • Certificate: https:// direct.bankofamerica.com
    • Dialogs: http://www.javascriptkit.com/javatutors/alert2.shtml