简体   繁体   中英

How to handle file upload using Sahi testing tool for angular js application?

我们有一个使用angular js应用程序的客户,并且必须通过Sahi支持对该应用程序的测试。我已经尝试过使用setFile的Sahi API来自动执行文件上传,但是无法正常工作。 ?

Try to use native function for uploading the file. Use _setFileUpload($element, $path,)

$element will be the _file("upload.. ") object. $path will be the path where the file to be uploaded is kept.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM