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

javascript - Can Piwik report referrer in real time? -

asp.net - Google Drive Access: At least one client secrets (Installed or Web) should be set -

c# - How do I debug "System.DllNotFoundException: The specified procedure could not be found"? -