samedi 23 février 2019

Nightwatch.js and multiple upload on input multiple

As I can see it should be possible (regarding nightwatch docs).

This is input markup inside DOM:

<input type="file" name="images" id="file-upload" multiple>

This is an excerpt of test (providing an array). nightwatch.js is just skipping this line without any error and action

.setValue( 'input#file-upload', [ require( 'path' ).resolve( __dirname + '/test.png' ), require( 'path' ).resolve( __dirname + '/test2.png' )] )

Passing string works properly:

.setValue( 'input#file-upload', require( 'path' ).resolve( __dirname + '/test.png' ) )

Aucun commentaire:

Enregistrer un commentaire