question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is using Safari possible? Siri prompt blocking

See original GitHub issue

The problem

I make an account on application, want to verify the email address. I open Safari, a prompt to enable/disable Siri appears. I can’t dismiss it, no results when findElements. No additional context appears besides “NATIVE_APP” either. Is using safari in automated tests just not possible.

Environment

  • Appium version (or git revision) that exhibits the issue: ^1.17.1
  • Desktop OS/version used to run Appium: macOS Big Sur 11.1
  • Node.js version (unless using Appium.app|exe): 14.15.1
  • Npm or Yarn package manager: NPM 6.14.8
  • Mobile platform/version under test: iOS 13.0
  • Real device or emulator/simulator: Real Device
  • Appium CLI or Appium.app|exe: Appium CLI

Details

Using a Real Device on BrowserStack

Code To Reproduce Issue

await this.driver.activateApp("com.apple.mobilesafari");
await this.driver.url(href);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Feb 12, 2021

This only means that using deep liking in native context is limited by Apple’s security restrictions.

There are at least 3 different possibilities to interact with Safari in Appium:

  • Using XCUITest driver via XCTest/accessibility
  • Using hybrid mode via Webkit remote debugger
  • Using Appium-safari driver via Apple’s implementation of W3C webdriver protocol
1reaction
KazuCocoacommented, Feb 11, 2021

It seems it could happen when Siri stuff is called via XCTest framework before turning Siri on by hand on the device. Not sure when the behavior changed, but Apple changed to behaves so.

btw, Appium opens an URL via Siri because the way was the most reliable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Siri settings on iPhone
Go to Settings > Siri & Search, then do any of the following: Prevent Siri from responding to the voice request “Hey Siri”:...
Read more >
Use accessibility features with Siri on iPhone
Use Siri on iPhone to turn accessibility features on or off, make and receive phone calls, hear notifications, and more.
Read more >
Customize website notifications in Safari on Mac
Use Siri suggestions​​ Stop seeing Siri Suggestions in Safari: Choose Apple menu > System Settings, click Siri & Spotlight in the sidebar (you...
Read more >
Siri pop-ups relentless! - Apple Community
I'm getting Siri popups on my new MacBook Pro 16". I've turned off Siri in the System Preferences but it keeps popping up...
Read more >
Use parental controls on your child's iPhone, iPad, and ...
With Content & Privacy Restrictions in Screen Time, you can block or limit specific apps and features on your child's device.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found