javascript - Windows File upload does not close after successfull upload using Protractor -


i'm using below method upload file in windows file dialog box in protractor. i'm able upload file,but dialog box not closing.

just element(by.css('input[type="file"]')).sendkeys(absolutepath) works fine upload.

the other commented code have tried,but did not close.looks broswer actions not triggering action on it.

   function uploadfile(absolutepath) {     return element(by.css('input[type="file"]')).sendkeys(absolutepath).then(() => {     // return element(by.id('uploadbutton')).click();     //  browser.actions().sendkeys(protractor.key.esc).perform();            //  browser.actions().sendkeys(protractor.key.enter).perform(); }); } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -