angularjs - Are you able to upload a file -


this question has answer here:

enter image description here

i have test upload pictures website uses defaulted os upload modal. after click upload cannot access upload screen. there way around it? saw online looked there had no idea how implement saying.

element(by.xpath("//div[@id='ngdialog28']/div[2]/div/div[6]/div/span")).click() element(by.css("input[type=\"file\"]")).click(); element(by.css("input[type=\"file\"]")).clear(); element(by.css("input[type=\"file\"]")).sendkeys("c:\\programdata\\meetingmatrix international\\meetingmatrix 2010\\mmidemo\\setups\\test.mms"); 

the answer below came previous post had overlooked. here code:

var path = require('path');    var filetoupload = 'put path here',    absolutepath = path.resolve(__dirname, filetoupload);    $('input[type="file"]').sendkeys(absolutepath);


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -