IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

Downloads

Check yourself

  1. 1.You set up page.waitForEvent('download') AFTER clicking the Export button. The test hangs indefinitely. Why?
  2. 2.Which method on the Download object returns the filename suggested by the server?
  3. 3.What is the correct pattern to intercept a download triggered by a button click?
  4. 4.How do you read the content of an intercepted download file in a test?
  5. 5.One button click triggers three file downloads simultaneously. What is the best way to collect all three?
  6. 6.How do you permanently save an intercepted download to a specific path on disk?
  7. 7.You want to verify that a downloaded CSV has a header row containing 'Order ID,Customer,Status,Total'. What approach works?
  8. 8.Why is the page.waitForEvent('download') pattern safer than page.on('download', handler) for a single expected download?