diff options
author | Jinhui Wang <jinhuiw@google.com> | 2016-07-12 14:15:19 -0700 |
---|---|---|
committer | Jinhui Wang <jinhuiw@google.com> | 2016-07-12 14:15:19 -0700 |
commit | e7c633339e0a8e3ea62b37c853da8f0359428ae2 (patch) | |
tree | 5458c2d7307d06d207b411ce8da7113d980246d7 /libs/UiAutomatorLib/src/com/android | |
parent | 774819d4fbf649ec940ec0f6adfb76ffe4ffc38c (diff) | |
download | AfwTestHarness-e7c633339e0a8e3ea62b37c853da8f0359428ae2.tar.gz |
Add new constructor for EnterPasswordPage
Change-Id: I820a430537e1e9a51c2a7361bd7cbc2c13a34c09
Diffstat (limited to 'libs/UiAutomatorLib/src/com/android')
-rw-r--r-- | libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/pages/gms/EnterPasswordPage.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/pages/gms/EnterPasswordPage.java b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/pages/gms/EnterPasswordPage.java index 88daf88..ed9a795 100644 --- a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/pages/gms/EnterPasswordPage.java +++ b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/pages/gms/EnterPasswordPage.java @@ -51,6 +51,18 @@ public final class EnterPasswordPage extends UiPage { } /** + * Constructor. + * + * @param uiDevice {@link UiDevice} object + * @param config {@link TestConfig} object holding test configurations + * @param customPasswordKey property key of the password in {@link TestConfig} + */ + public EnterPasswordPage(UiDevice uiDevice, TestConfig config, String customPasswordKey) { + super(uiDevice, config); + mPassword = config.getProperty(customPasswordKey); + } + + /** * {@inheritDoc} */ @Override |