Code Monkey home page Code Monkey logo

Comments (6)

mykola-mokhnach avatar mykola-mokhnach commented on May 29, 2024

Most likely this alert belongs to another application (e.g. springboard). Switch to it using mobile: activateApp API and then it will be possible to interact with the dialog. AFAIK apis that work with alerts check both the active app and the system one.

from appium.

RSM-SBA avatar RSM-SBA commented on May 29, 2024

ok so i have to create a workaround for this change in XCUITest driver ? because it worked the last version...

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on May 29, 2024

There was an issue where each command would create an unnecessary delay while selecting a proper application to interact with. The issue was fixed, although it also relies on the assumption that an app is then selected by the client unless it is the application under test that is initially passed to the session capabilities.

from appium.

RSM-SBA avatar RSM-SBA commented on May 29, 2024

@mykola-mokhnach ok added now the workaround to switch to springboard and that works.

from appium.

KazuCocoa avatar KazuCocoa commented on May 29, 2024

Or:

driver.settings.update({acceptAlertButtonSelector: '**/XCUIElementTypeButton[`label=="Allow Once"`]'})
driver.switch_to.alert.accept

or

driver.execute_script 'mobile: alert', {action: 'accept', buttonLabel: 'Allow Once'}

https://appium.github.io/appium-xcuitest-driver/5.15/reference/execute-methods/#mobile-alert

like these commands also should help to interact with them.

from appium.

KazuCocoa avatar KazuCocoa commented on May 29, 2024

XCUITest driver 5.15.1 reverted the change in 5.14.1 addressed the fix in #19716 (comment)

The change will come in a future release, but it should not be a patch release. <- v6.0.0 includes this change

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.