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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -