Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appium 1.6.0 beta 1 'autoAcceptAlerts' not working #6863

Closed
poppo191 opened this issue Sep 20, 2016 · 7 comments
Closed

Appium 1.6.0 beta 1 'autoAcceptAlerts' not working #6863

poppo191 opened this issue Sep 20, 2016 · 7 comments

Comments

@poppo191
Copy link

The problem

Hello, I have a problem when the alert view has prompt Appium Don't have any action.

Environment

  • Appium version 1.6.0 beta 1

Code To Reproduce Issue [ Good To Have ]

capabilities = {
    'appium-version' => '1.6.0-beta1',
    'deviceName' => 'iPhone 7',
    'platformName' => 'iOS',
    'platformVersion' => '10.0',
    'app' => './build/Debug-iphonesimulator/RP Staging.app',
    'autoAcceptAlerts' => true,
    'nativeWebTap' => true,
    'fullReset' => true
}

This is my configuration capabilities.

@triager triager added the Needs Triage bugs which are not yet confirmed label Sep 20, 2016
@midopa
Copy link
Contributor

midopa commented Oct 19, 2016

I'm seeing the same problem for popups in Safari. It seems related. If not, let me know and I can open another issue.

  • OSX El Capitan
  • Node 6.7.0
  • Appium @ v1.6.0 tag with modified package.json to point to 2.0.29 XCUITest driver
  • XCode 8
  • iOS 10, iPad Air simulator

Capabilities:

[Appium] Capabilities:
[Appium]   deviceName: 'iPad Air'
[Appium]   browserName: 'Safari'
[Appium]   platformVersion: '10.0'
[Appium]   safariAllowPopups: true
[Appium]   platformName: 'iOS'
[Appium]   port: 12344

My test code:

driver.get('http://localhost:8000')
driver.find_element_by_id('asd').click()

My test website:

<a id="asd" href="https://www.google.com" target="_blank">asdasd</a>

Log: https://gist.github.com/midopa/8318247111f524d6c42504a909e71445

@mykola-mokhnach
Copy link
Collaborator

Known issue. autoAcceptAlerts capability is not supported yet in XCUITest mode.

@midopa
Copy link
Contributor

midopa commented Oct 20, 2016

I think my issue is slightly different. I'll file a separate bug under the XCUITest driver project.

@jlipps
Copy link
Member

jlipps commented Nov 1, 2016

closing in favor of #6864

@jlipps jlipps closed this as completed Nov 1, 2016
@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Apr 13, 2017
@fanheng0921
Copy link

"Context.driver.switch_to.alert.accept" can be used instead of "autoAcceptAlerts:True"

@sgr914
Copy link

sgr914 commented Jan 16, 2018

I used 'Context.driver.switch_to.alert.accept', but I got: NameError: name 'Context' is not defined

@lock
Copy link

lock bot commented Apr 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants