Skip to content
VirtualLP Virtual Learning Platform
Testing Tools P17 advanced

Handle a Windows file-upload dialog with AutoIt

Run your first AutoIt script in SciTE, inspect the native “Open” dialog with AutoIt Window Info, write and compile upload.au3, and call the executable from a Selenium WebDriver test to upload a résumé.

What you'll do

  • Write AutoIt scripts with WinWait, ControlSetText and ControlClick
  • Identify controls with AutoIt Window Info
  • Compile .au3 to .exe and pass $CmdLine arguments
  • Combine AutoIt with Selenium WebDriver

Lab tasks

  1. 1 Run your first AutoIt script
  2. 2 Open the native file dialog
  3. 3 Identify the controls with Window Info
  4. 4 Write and compile upload.au3
  5. 5 Upload the résumé from the WebDriver test