Playwright + Python · Lesson 20 of 37
Module 20: Web Elements
Your task
Implement click_row_button(page, order_id, btn_name):
Write it in the editor, then press Check answer (Ctrl + Enter).
row = page.locator("tbody tr").filter(has_text="ORD-8491")
row.get_by_role("button", name="View").click()
page.get_by_placeholder("Search skills...").fill("Playwright")
page.get_by_role("option", name="Playwright Python").click()Modern web applications feature rich dynamic widgets: data tables with pagination, searchable multi-selects, and calendars. In this lesson, you will learn robust patterns to automate complex web elements cleanly in Python. Let's tackle rich UI widgets!
Part of the Playwright + Python course (Playwright with Python). Practice this concept live in the Playwright Online Compiler or explore our free automation practice form.
Call page.mouse.wheel(0, 1000) or scroll the last element into view until all records load.
Ready? Solve the task in the editor
Use Check answer to mark it complete. Hints are there if you need them.
___