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

Quiz

Actions

Check yourself

  1. 1.You need to test an autocomplete that triggers suggestions after each keystroke. Which method should you use instead of fill()?
  2. 2.What does locator.fill('hello') do before setting the value?
  3. 3.What does locator.click() automatically do before firing the click event?
  4. 4.You want to check a checkbox only if it is currently unchecked. Which method is most appropriate?
  5. 5.How do you select an option in a native <select> dropdown by the text the user sees (not the value attribute)?
  6. 6.How do you attach a file to an <input type="file"> element in Playwright without opening the OS file picker?
  7. 7.You want to send the keyboard combination Ctrl+A (select all) to an input field. Which code is correct?
  8. 8.Which Playwright method handles HTML5 drag-and-drop (elements with the draggable attribute)?