Code Monkey home page Code Monkey logo

Comments (6)

ziczhu avatar ziczhu commented on May 22, 2024

@TediWang iOS 下可以直接用 acceptAlert 或者 dismissAlert 来选择接受或者忽视 Alert,不用去查找元素,如果嫌麻烦,并且 Alert 不是功能性的(比如你是通过 Alert 来选择),可以在配置中就设置 autoAcceptAlerts: true。

from macaca.

ziczhu avatar ziczhu commented on May 22, 2024

@TediWang 如果设置了 autoAcceptAlerts 还是没有用,你可以把 macaca server 的日志发出来看一下,grep '/wd/hub/session/temp/accept_alert' xxx.txt -C10,xxx.txt 是日志文件。

from macaca.

TediWang avatar TediWang commented on May 22, 2024

@zenzhu : 日志如下
Proxy: /wd/hub/session/temp/accept_alert:POST to http://10.32.24.19:8100/session/BD46D161-F35A-45D0-A273-1F774A36D42D/accept_alert:POST with body: {}
Got response with status 200: {"value":"Unhandled endpoint: /session/BD46D161-F35A-45D0-A273-1F774A36D42D/accept_alert -- http://10.32.24.19:8100/ with parameters {\n wildcards = (\n "session/BD46D161-F35A-45D0-A...

from macaca.

TediWang avatar TediWang commented on May 22, 2024

大概的可能和连续2次弹窗有关:
如果连续2次弹窗,一个是定位授权,一个是通知授权。不管是手动调用还是自动aceept设置,都只能点掉一个,另一个点不掉。循环10次也是一样。

from macaca.

ziczhu avatar ziczhu commented on May 22, 2024

https://github.com/xudafeng/webdriveragent/commit/d953f77cc4e63e86047e143940c87d34904e0464

from macaca.

TediWang avatar TediWang commented on May 22, 2024

更新后已解决,赞!

from macaca.

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.