-
Notifications
You must be signed in to change notification settings - Fork 152
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
Unable to interact with native password type text field in webview #438
Comments
Thanks for creating an issue. This is a bug that we'll have to fix. I think that the cause is that the password is a secure text field, not a normal text field. This will require changing the enterText() method in the iOS automation server. Source: |
I would like to try fix this issue @bartekpacia. |
Xcode project of the native iOS automation is downloaded by default to It's built on every That said, while the user-facing API is quite stable and we try not to make many breaking changes, the implementation is not – I work on it almost every day and change lots of code. You can submit a PR if you want, but expect a lot of merge conflicts. I'll try to fix this issue by the end of this week though, so you can just keep waiting :) |
Ok perfect, thanks you very much ! |
Hi @AlexisDeslandes, today is Friday, and this should be fixed :) |
Thanks @bartekpacia, I tried tu run patrol drive command but got this error:
I saw you added:
CGVectorMake has to be replaced with CGVector I think. |
Oh, that's strange. What version of Xcode and |
I have xcode 13.4.1 and patrol_cli v0.7.0 |
It was a problem with xCode version, it seems. Thanks |
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. |
Hello, i have an issue with login.
I use the package flutter_appauth which work with a webview to authenticate.
I have to fill a web form to log, enterText works with the username but not for the password, even after hiding the keyboard.
There is a placeholder with the word: Password
I tried many ways to do:
await $.native.enterText(Selector(text: 'Password'), text: '');
await $.native.enterTextByIndex('', index: 1);
Selector(field with contains ...)
Got: Patrol action failed: enterText() failed with code NOT_FOUND
And the second one says that index 1 doesn't exists.
After view hierarchy dump I got:
I did the dump and got:
My tests were done using macos & iPhone simulator.
If needed I could try to take the original html from the login page and try to do something to remove confidential data.
Would you have a solution?
The text was updated successfully, but these errors were encountered: