I am trying to upload image, when i click on upload image button then it displays all images but i am failed to select image.
我正在尝试上传图片,当我点击上传图片按钮然后它显示所有图像但我无法选择图像。
This is the HTML code, please suggest me a solution.
这是HTML代码,请建议我一个解决方案。
<div class="uploadimg clearfix" ng-show="member.data.imageType != 'avatar'">
<div ng-model="member.data.image" name="image" ngf-select="uploadFiles($file, $invalidFiles,'user')" class="button ng-pristine ng-untouched ng-valid ng-empty">
<img ng-src="/public/images/uploadimg-img.jpg" src="/public/images/uploadimg-img.jpg">
</div>
<div class="uploadingsecpop ng-hide" ng-show="member.data.image && member.data.imageType == 'image'">
<img class="thumb" src="/public/images/" alt="">
</div>
</div>
1 个解决方案
#1
0
var path = require('path');
var fileToUpload = "F://images/f2.jpg";
var absolutePath = path.resolve(__dirname, fileToUpload);
element(&%#LOCATOR&^#%).sendKeys(absolutePath);
#1
0
var path = require('path');
var fileToUpload = "F://images/f2.jpg";
var absolutePath = path.resolve(__dirname, fileToUpload);
element(&%#LOCATOR&^#%).sendKeys(absolutePath);