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

allowTouchIdEnroll capability is not setting Touch ID Enroll in Simulator #14150

Closed
arpitkup opened this issue Apr 7, 2020 · 8 comments
Closed
Labels
Documentation related to writing, reading, or generating documentation Help Needed contributions wanted!

Comments

@arpitkup
Copy link

arpitkup commented Apr 7, 2020

The problem

I am trying to automate touch ID feature introduced in our app for one for the payment types. I set allowTouchIdEntroll to true using "capability.SetCapability("allowTouchIdEnroll", true);" When I run the test, the simulator and the app starts without Touch Id enabled.

I am using xCode version 11.3.1, Appium V 1.16.0, Appium.WebDriver 3.0.2 & C# programming.

I use terminal to launch appium and it is already been added in Accessibility under System Preferences.

Environment

  • Appium version (or git revision) that exhibits the issue: Appium v1.16.0
  • Last Appium version that did not exhibit the issue (if applicable): NA
  • Desktop OS/version used to run Appium:NA
  • Node.js version (unless using Appium.app|exe):10.16.0
  • Mobile platform/version under test: iOS 13.3
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: Appium CLI

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

https://gist.github.com/arpitkup/7e2e0f291f0586b74766118ec52a4078

Code To Reproduce Issue [ Good To Have ]

      capability = new DesiredCapabilities();           
        capability.SetCapability("platformName", platformName);
        capability.SetCapability("platformVersion", platformVersion);
        capability.SetCapability("deviceName", deviceName);
        capability.SetCapability("allowTouchIdEnroll", true);
        capability.SetCapability("automationName", "XCUITest");
        capability.SetCapability("useNewWDA", true);
        capability.SetCapability("startIWDP", true);
        capability.SetCapability("app", app);
        capability.SetCapability("forceMjsonwp", true);

       driver = new IOSDriver<IOSElement>(new Uri(ServerUrl()), capability, 
       TimeSpan.FromSeconds(180));
@arpitkup
Copy link
Author

arpitkup commented Apr 7, 2020

Screen Shot 2020-04-06 at 4 41 55 pm

@mykola-mokhnach
Copy link
Collaborator

[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] allowTouchIdEnroll
[BaseDriver] forceMjsonwp

Where it is stated that such capability exists?
Currently the only way to enroll TouchId is to call the mobile: enrollBiometric API.

@mykola-mokhnach mykola-mokhnach added Needs Info typically non-actionable; needs author to respond NotABug labels Apr 7, 2020
@arpitkup
Copy link
Author

arpitkup commented Apr 7, 2020

@mykola-mokhnach mykola-mokhnach added Documentation related to writing, reading, or generating documentation Help Needed contributions wanted! and removed Needs Info typically non-actionable; needs author to respond NotABug labels Apr 7, 2020
@mykola-mokhnach
Copy link
Collaborator

Then it must be a documentation issue

@arpitkup
Copy link
Author

arpitkup commented Apr 7, 2020

Thanks @mykola-mokhnach. I will try out mobile: enrollBiometric API.

@Andrewngabriel
Copy link

Andrewngabriel commented Mar 2, 2021

Where in the documentation would this need to be updated? Happy to make a contribution and update it. @mykola-mokhnach

@KazuCocoa
Copy link
Member

@mykola-mokhnach
Copy link
Collaborator

Closed as resolved. Thanks @Andrewngabriel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation related to writing, reading, or generating documentation Help Needed contributions wanted!
Projects
None yet
Development

No branches or pull requests

4 participants