Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 17th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to deal with upload/download pop-up window
  2. sub import_files()
  3. {
  4.    # http://mygengo.com/string/p/<proj_name>-1/admin/languages/import/en
  5.    $url = $MYGENGO_STRING_PROJECT_URL . $_[0] . "-1" . $IMPORT_FILES;
  6.    $sel->open($url);
  7.  
  8.    $sel->attach_file("class=qq-upload-button string-file-import",
  9.     "http://localhost/1.php"); # But this does not open the file browse window
  10.  
  11.    $sel->click("class=qq-upload-button string-file-import");
  12.    $sel->wait_for_page_to_load(9000);
  13. }