appium / appium/java-client

Is there any way to get notified when an alert is poped up?

Open
#517 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs investigation
Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

I would like to be notified when alerts are showing and act upon it.

I tried the The-event_firing feature, but realised these events are only fired when I call my AppiumDriver instance.

There are these capabilities "autoAcceptAlerts/autoDismissAlerts" which is handled somewhere and handle the alerts accordingly. Is there any way to get notified when this happens, and preferable let me handle what should be done when an alert is popping up.

Or is my only option to poll for alerts? If so, I how should I do that in best way? What should I poll for?

Contributor guide

No contributing guide indexed for this repository

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 reading docs/The-event_firing.md and tracing how autoAcceptAlerts and autoDismissAlerts are handled in the Java client. The issue does not name an implementation file or test; done would require a defined notification or handling mechanism for alerts that appear without an explicit AppiumDriver call, together with tests documenting its behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.