Skip to content

v0.36.0

Latest

Choose a tag to compare

@hamc hamc released this 29 Nov 16:26
c2e9ed0

Minor. One change reaches a run that changes nothing: a native confirm(), alert() or prompt()
is no longer answered "Cancel" unseen, so a step that passed only because a dialog was dismissed
for it now meets the dialog and must answer it. The reports gain a line for a step that passed only
after a failed attempt; the verdict and the score do not change.

Added

  • A step that passed only after a failed attempt is reported
    (#78). A step whose action failed or was refused,
    whose check failed on the settled page, or that the agent declared done before it was, and that
    then passed read exactly like one that worked as written. In #78, a link to /login landed on the home page, the agent reached the form through
    the menu, and the report said Score 100. The summary now lists such steps after the failures,
    with what went wrong first; JUnit counts them in recovered_steps and puts the lines in the test
    case's <system-out>; the HTML report labels the step. The verdict and the score do not change.

  • Native alert, confirm and prompt dialogs are shown to the agent and answered by it
    (#22). Before, Playwright dismissed every one
    unseen, so a button guarded by confirm() never did what it guarded and the step failed with a
    reason about the page. While a dialog is open the snapshot is the dialog, with its message and
    buttons, and the agent clicks the one the step calls for (OK, Cancel, or for a page asking to
    leave, Leave or Stay); a prompt takes a fill first. No new action: the ref, value and
    replay rules hold for these clicks as for any other. A check answers only an alert. A dialog
    opened by a frame outside the allowed origins is dismissed unseen, with one warning per origin.