Sahi file and image upload error in playback -


while trying run script image upload or file upload, following play error in sahi open source.

what done prevent error?

script goes like:

_click(_link("プロフィール")); _assertexists(_file("profile-fileupload")); _assert(_isvisible(_file("profile-fileupload"))); _assertequal("", _getvalue(_file("profile-fileupload"))); _setfile2(_file("profile-fileupload"), "c:\\fakepath\\img_69546123046766.jpeg"); 

you can't record file upload. sahi provided dummy path file upload. if @ this:

_setfile2(_file("profile-fileupload"), "c:\\fakepath\\img_69546123046766.jpeg"); 

this using fakepath. enter actual filesystem path of file , uploaded.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -