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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -