minkphp / minkphp/Mink

Support for alert(), confirm() and prompt() boxes?

Open
#158 31 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature proposal
Dominant language
PHP
Stars
1.6k
Forks
286
PR merge metrics
No merged PRs in 30d

Description

Is there any way using the Mink API to, for example, click on the OK or Cancel buttons on a Javascript-generated confirm dialog box or fill in text in a dialog generated from prompt()? We're having trouble testing steps that require the user to confirm certain actions such as deleting objects, since the confirmation doesn't seem to succeed. FWIW we're using Mink 1.3.2 with the ZombieDriver.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Mink API and the ZombieDriver integration mentioned in the issue to see how JavaScript dialogs are currently handled. Done should provide a defined way to accept or dismiss alert and confirm dialogs and supply prompt text, with tests covering those interactions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.