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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

ruby - unknown property method: 'wait' on EC2 windows server Instance -