-
Notifications
You must be signed in to change notification settings - Fork 159
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
Testing Biometrics features #7
Comments
Android:
Additional problem: many, many vendors. iOS:
|
Is this on some roadmap to be implemented soon? So far this lib looks amazing, keep pushing guys 💪🏽 |
Hello @JulianBissekkou! Glad you like Patrol 💙
We'll share our roadmap with the community soon, and researching biometrics should be there, but I'm not sure what priority it has. I'll ping you here when it happens. |
I was able to activate biometry settings via PIN (emulator) however I'm stuck on this screen because there is no "Confirm" button. If someone finds a workaround for this please let me know! // Setting up biometry from Security settings
await $.native.tap(Selector(text: 'Screen lock'));
await $.native.tap(Selector(text: 'PIN'));
await $.native.enterTextByIndex('1234', index: 0);
await $.native.tap(Selector(text: 'NEXT'));
await $.native.enterTextByIndex('1234', index: 0);
await $.native.tap(Selector(text: 'CONFIRM'));
await Future.delayed(Duration(seconds: 1));
await $.native.tap(Selector(text: 'DONE'));
// Biometry set up, go back to app
await $.native.pressBack();
final loginButton = find.text('Aktivovat');
await tester.pumpUntilFound(loginButton);
await tester.tap(loginButton);
await $.native.enterTextByIndex('1234', index: 0);
await $.native.tap(Selector(className: 'android.widget.EditText')); // Stuck on biometry PIN validation screen (see screenshot) because there is no button and no way to send "ENTER" key
|
@mzdm You can try taking a native view hierarchy dump and trying to find the "->|" (continue) button there. Maybe it has some unique |
I tried but unfortunately "->|" seems to be a part of the keyboard which is not included in the native hierarchy tree Code<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy rotation="0">
<node bounds="[0,66][1080,2088]" checkable="false" checked="false" class="android.widget.LinearLayout"
clickable="false" content-desc="" enabled="true" focusable="true"
focused="false" index="0" long-clickable="false" package="com.android.systemui" password="false"
resource-id="" scrollable="false" selected="false" text="">
<node bounds="[0,66][1080,2088]" checkable="false" checked="false"
class="android.widget.FrameLayout" clickable="false" content-desc=""
enabled="true" focusable="false" focused="false" index="0" long-clickable="false"
package="com.android.systemui" password="false" resource-id="com.android.systemui:id/layout" scrollable="false"
selected="false" text="">
<node bounds="[0,66][1080,2088]" checkable="false" checked="false"
class="android.widget.ImageView" clickable="true"
content-desc="Tap to cancel authentication" enabled="true" focusable="true"
focused="false" index="0" long-clickable="false" package="com.android.systemui" password="false"
resource-id="com.android.systemui:id/background" scrollable="false" selected="false"
text="" />
<node bounds="[0,66][1080,2088]" checkable="false" checked="false"
class="android.view.View" clickable="false" content-desc=""
enabled="true" focusable="false" focused="false" index="1" long-clickable="false"
package="com.android.systemui" password="false" resource-id="com.android.systemui:id/panel" scrollable="false"
selected="false" text="" />
<node bounds="[0,66][1080,2088]" checkable="false" checked="false" class="android.widget.LinearLayout"
clickable="false" content-desc="" enabled="true" focusable="false"
focused="false" index="2" long-clickable="false" package="com.android.systemui"
password="false" resource-id="" scrollable="false" selected="false"
text="">
<node bounds="[496,294][584,382]" checkable="false" checked="false"
class="android.widget.ImageView" clickable="false" content-desc=""
enabled="true" focusable="false" focused="false" index="0"
long-clickable="false" package="com.android.systemui" password="false" resource-id="com.android.systemui:id/icon"
scrollable="false" selected="false" text="" />
<node bounds="[0,382][1080,503]" checkable="false"
checked="false" class="android.widget.TextView"
clickable="false" content-desc="" enabled="true" focusable="false"
focused="false" index="1" long-clickable="false" package="com.android.systemui"
password="false" resource-id="com.android.systemui:id/title" scrollable="false" selected="false"
text="Prosím, authentizujte se" />
<node bounds="[254,731][826,876]" checkable="false" checked="false"
class="android.widget.EditText" clickable="true" content-desc=""
enabled="true" focusable="true" focused="true" index="2"
long-clickable="true" package="com.android.systemui" password="true" resource-id="com.android.systemui:id/lockPassword"
scrollable="false" selected="false" text="•••••" />
<node bounds="[0,876][1080,946]" checkable="false" checked="false"
class="android.widget.TextView" clickable="false" content-desc=""
enabled="true" focusable="false" focused="false" index="3"
long-clickable="false" package="com.android.systemui" password="false" resource-id="com.android.systemui:id/error"
scrollable="false" selected="false" text="" />
</node>
</node>
</node>
</hierarchy> |
As for the Enter key: we could do this with UiDevice#pressEnter() on Android. See also #1516. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
No description provided.
The text was updated successfully, but these errors were encountered: