2016-03-21 16 views

cevap

0
<input name="upload" type="file"> 

yükle Çözüm:

 
var absolutePath = path.join(__dirname,'..\\..\\dash-e2e-tests\\resources\\files-cabin\\test-files\\image.png); 

element(by.xpath("xpath")).sendKeys(absolutePath); 

İndir Çözüm:

capabilities: { 
    browserName: 'chrome', 
    'chromeOptions': { 
     prefs: { 
      download: { 
       'prompt_for_download': false, 
       'directory_upgrade': true, 
       'default_directory': downloadfile 
      } 
     } 
    } 

},