appium/appium

Appium 1.6.0 beta 1 'autoAcceptAlerts' not working

poppo191 opened this issue · 7 comments

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.

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

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

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

closing in favor of #6864

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

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

lock commented

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.