Lesson 4: Handle Inputs and Buttons

Forms & Buttons

Text Input

python

page.fill("#email", "test@example.com")

page.keyboard.press("Tab")

Mouse Actions

python

page.get_by_role("button").hover()

page.get_by_text("Submit").click(click_count=2)

    CareerRaah - AI Learning Platform for Professionals