Unable to obtain password attribute
See original GitHub issueThe problem
When I attempt to obtain the password attribute, Appium responds with an error that the element can not be located.
When viewing the element using the Appium inspector, it is clear that the element does have the password attribute:
## EnvironmentAppium version: v1.4.13, v1.4.16 Desktop OS: Yosemite v10.10.5 Node.js Version: v4.2.3 Mobile Platform: Android Emulator: Genymotion, Samsung Galaxy S6 - 6.0.0 - API 23 Noticed error on both Appium CLI and Appium.app
Link to Appium logs
Can not post full log on gist. Here is the log output from where the error occurred:
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"xpath","selector":"//android.view.View[2]/android.widget.EditText[1]","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.view.View[2]/android.widget.EditText[1]","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding //android.view.View[2]/android.widget.EditText[1] using XPATH with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[CLASS=android.widget.EditText, INSTANCE=1]
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"ELEMENT":"18"}}
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"18"},"sessionId":"6aeafb9b-f259-495a-8e58-c03eec0cf737"}
info: <-- POST /wd/hub/session/6aeafb9b-f259-495a-8e58-c03eec0cf737/element 200 1471.686 ms - 88 {"status":0,"value":{"ELEMENT":"18"},"sessionId":"6aeafb9b-f259-495a-8e58-c03eec0cf737"}
info: --> GET /wd/hub/session/6aeafb9b-f259-495a-8e58-c03eec0cf737/element/18/attribute/password {}
info: [debug] Pushing command to appium work queue: ["element:getAttribute",{"elementId":"18","attribute":"password"}]
info: [debug] Responding to client with error: {"status":7,"value":{"message":"An element could not be located on the page using the given search parameters.","origValue":"This element does not have the 'password' attribute"},"sessionId":"6aeafb9b-f259-495a-8e58-c03eec0cf737"}
info: <-- GET /wd/hub/session/6aeafb9b-f259-495a-8e58-c03eec0cf737/element/18/attribute/password 500 2.976 ms - 230
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getAttribute","params":{"elementId":"18","attribute":"password"}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getAttribute
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":7,"value":"This element does not have the 'password' attribute"}
info: --> DELETE /wd/hub/session/6aeafb9b-f259-495a-8e58-c03eec0cf737 {}
info: Shutting down appium session
Code To Reproduce Issue [ Good To Have ]
used java-client’s .getAttribute(“password”) on a WebElement.
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Kerberos spring javax.security.auth.login.LoginException
I am trying hard with below code and configuration but getting unable to obtain password from user exception as in attached logs below....
Read more >Unable to obtain password from user error when Kerberos ...
The purpose of this article is to provide assistance if you receive a "javax.security.auth.login.LoginException: Unable to obtain password ...
Read more >"Unable to obtain password from user" when the Test ... - ERROR
This issue happens due to incorrect users given for the User field in the Hive scanner. Solution.
Read more >Kerberos Unable to obtain password from user - 144246
I am trying to connect from Squirrel to phoenix and it errors out with. at org.apache.phoenix.jdbc.
Read more >Key for principal “<ID>” not available in “<keytab>”
[Krb5LoginModule] authentication failed. Unable to Obtain password from user ... But did not get any clue on that.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please, fix this bug/issue-bug…
I have the same problem and would be glad to get any solution.