Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

file download

zhongfoxzhongfox Members
edited November -1 in Sahi - Open Source
Hi all,
When using sahi, once after clicking a link, I need wait a file download dialog show up, and click open. how can I use sahi to do that?I only found _clearLastAlert() and so on.
Need your help, thanks.

Comments

  • narayannarayan Administrators
    Hi zhongfox,

    Please have a look at this: http://sahi.co.in/w/handle-file-downloads
    We just added this.

    Regards,
    Narayan
  • Hi narayan,

    Thanks for your help, now I can save file with these APIs, but you know, there are three buttons when download: open(O), save(S), cancel. so is there some api can open the file immediately like click the button open.

    thanks,
    Zhong
  • narayannarayan Administrators
    Hi Zhong,

    Sahi can only do a Save. You will need some other automation program, or use Java to read the downloaded file and make assertions on it.

    Regards,
    Narayan
  • Hi Narayan,
    Ok, I got it, thank you!

    Regards,
    Zhong
This discussion has been closed.