Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

upload photos cypress

it('Uploads a CSV', () => {
    cy.document().trigger('dragenter')
    // you don't need to use cy.document() that is where my event listener is. 
   //you could use cy.get('element').trigger('dragenter')
    cy.dropFile('test.csv')
})
Source by sqa.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #upload #photos #cypress
ADD COMMENT
Topic
Name
9+2 =