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
Appium 1.6.0-beta1: iOS: Failed to set PickerWheel value #6873
Comments
same issue here, with same setup On Wed, Sep 21, 2016 at 11:57 AM, Aleksei notifications@github.com wrote:
|
This isa repeatable failure. Working on the upstream project to get a fix. Thanks! |
@imurchie seems like WDA doesn't know how to handle array of values according to the spec? |
It does, except for picker wheels. I've just submitted a PR to fix this issue. |
Summary: I'm not at all certain that this is the correct way to do this, but it fixes the problem. When sending text to a PickerWheel, in order to set it, the array value is not found in the possible values and it is rejected. So concatenate the array into a string. See appium/appium#6873 Closes #295 Differential Revision: D3907080 Pulled By: marekcirkos fbshipit-source-id: 11bb2201e3672b8ad5c3eb826fcb6a573aa2ef6a
how to grab changes? reinstall with |
You won't be able to yet, unless you run from source. I'll post here once the PR to update the upstream project is in. |
If you update Appium you should get these changes. Updated in |
damn! working just great! speed if fantastic comparing with older UIAutomation. |
Hi, I still have this problem with appium 1.6.0-beta1 witch contains |
Can you provide more of the log? We need to know what is being sent in. |
I added Appium logs, but seems poor in a debug mode Le 5 oct. 2016 18:31, "Isaac A. Murchie" notifications@github.com a
|
I don't see any logs. |
I put a Gist link to Appium log Le 7 oct. 2016 15:46, "Isaac A. Murchie" notifications@github.com a
|
Where? You need to post a link here. |
Sorry, I added it to the post. Here is the poor log from Appium for the moment the script tries to get 2016-10-07 15:58 GMT+02:00 Isaac A. Murchie notifications@github.com:
|
I don't understand what this has to do with the original problem. What is this log? Why am I looking at it? |
Well, I'll try to be more clear I do a findElementsByXpath() and I retrieve a number of items. I look for retrieve the value of the property "trainNameLabel" for all In many cases, it returns the value of the property "trainNameLabel" (it's I select only XCUIElementTypeStaticText items with @name=trainNameLabel and Here is an example of tree of items for which I want just to get the value
dom="" enabled="true" valid="true" visible="true" hint="" The Appium log I sent only shows the moment when findElementsByXpath() I really don't know how to proceed to find the root cause of this problem. Thank you in advance for your help. 2016-10-07 16:03 GMT+02:00 Isaac A. Murchie notifications@github.com:
|
@appiumnovice This is not an error. You are asking how to do something not reporting an error as far as I can tell. Try asking here: https://discuss.appium.io/ If it really is an error, you need to post what commands you are explicitly sending to appium (like what python/java/etc command) and what you are receiving back from appium. Also this does not have to do with the picker wheel issue so please start another post with all the correct logs if you think it is still an error. |
Issac, i'm really really really sorry!!! I just understood than I send you elements for another problem !!! Post For this problem of Picker, I'm run the test again and send you Appium logs. 2016-10-07 16:03 GMT+02:00 Isaac A. Murchie notifications@github.com:
|
I posted a new issue : #6962 PS: is it possible to remove previous posts that finally have nothing to do with the problem described in this post to avoid visitors to be disturbed ? |
@appiumnovice, Did you solve the picker issue? I do have issue in setting value to the picker wheel. Let me know if you have any solution. |
I'm running Appium 1.6.3 via command line and using iphone6 9.3 sim. I am unable to use send keys, where as old version of appium i could. Old code: |
Hi All, Please let me know the solution for this issue. SendKeys were working in old version. What is the logic to deal with PickerWheel. It is very urgent for me to complete the assignment. stuck into this. |
|
Thanks for the prompt update. Unfortunately, this is also not working for me 👎 . And I am getting the below error in Terminal - Appium logs |
Move to 1.6.4-beta |
I am very new to iOS Automation. i have installed Appium 1.6.4-beta from terminal. After the installation if i launch the appium from Terminal Appium 1.6.3 is launching. Logs are below: npm WARN automation@1.0.0 No description npm WARN automation@1.0.0 No description Your timely help would be appreciated. Thanks |
Try "npm install *-g* appium@1.6.4-beta" <appium@1.6.4-beta>
2017-03-01 17:40 GMT+01:00 Joekannan <notifications@github.com>:
… @amedvedjev <https://github.com/amedvedjev>
I am very new to iOS Automation. i have installed Appium 1.6.4-beta from
terminal. After the installation if i launch the appium from Terminal
Appium 1.6.3 is launching.
*Logs are below:*
Last login: Wed Mar 1 16:29:24 on ttys000
DTS-Mini:~ automation$ npm install ***@***.***
npm WARN deprecated ***@***.***: Babel 5 is no longer being
maintained. Upgrade to Babel 6.
npm WARN deprecated ***@***.***: Please update to minimatch 3.0.2 or
higher to avoid a RegExp DoS issue
npm WARN deprecated ***@***.***: Copy its ~20 LOC directly into
your code instead.
***@***.*** /Users/automation
└── ***@***.***
npm WARN ***@***.*** No description
npm WARN ***@***.*** No repository field.
DTS-Mini:~ automation$ sudo npm install ***@***.***
Password:
npm WARN deprecated ***@***.***: Babel 5 is no longer being
maintained. Upgrade to Babel 6.
npm WARN deprecated ***@***.***: Please update to minimatch 3.0.2 or
higher to avoid a RegExp DoS issue
npm WARN deprecated ***@***.***: Copy its ~20 LOC directly into
your code instead.
***@***.*** /Users/automation
└── ***@***.***
npm WARN ***@***.*** No description
npm WARN ***@***.*** No repository field.
DTS-Mini:~ automation$ appium --default-capabilities
'{"newCommandTimeout": 3000}'
[Appium] Welcome to Appium v1.6.3 (REV d9b43638333b47dd8ed8bcbbb97ef9
f8c0ad5756)
[Appium] Non-default server args:
[Appium] defaultCapabilities: { newCommandTimeout: 3000 }
[Appium] Default capabilities, which will be added to each request unless
overridden by desired capabilities:
[Appium] newCommandTimeout: 3000
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
Your timely help would be appreciated. Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6873 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKhCmmdDd-0fVRTEE8N_JgtPEEruz2Gfks5rhZ94gaJpZM4KCjiG>
.
|
I am getting the below terminal error Last login: Wed Mar 1 17:28:51 on ttys001 npm ERR! enoent ENOENT: no such file or directory, open '/Users/automation/-g' npm ERR! Please include the following file with any support request: |
I have seen a separate thread for this issue, where they have mentioned it is a non-appium issue and developer needs to change the Wheel picker implementation to identify the elements. Below is the URL where i found this information:- Can anyone please confirm this, is there any other alternate or reliable workaround to deal with XCUIElementTypePickerWheel Element.. Please it is very urgent. Your help is much appreciated. |
I had the same issue. My developer couldn't change the implementation for some reasons. List wheels = driver.findElements(MobileBy.className("XCUIElementTypePickerWheel")) Point p1=wheels.get(0).getLocation() //-100 scrolls up (taps the value below the currently selected value) //+100 scrolls down (taps the value above the currently selected value) |
@suganeby |
@suganeby Thanks for the implementation. I've been scouring for a workaround for a viewForRow implementation and this was the only solution that worked for me. I really appreciate your contribution! |
Per @suganeby I just installed appium 1.6.4. Now I am able to set values to the picker directly. List wheels = driver.findElements(MobileBy.className("XCUIElementTypePickerWheel")) |
Was anyone able to get solution for this issue? Tried to use, |
@SamyQAZ , |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
Set wheel value does not work any more with latest Appium.
Environment
Details
Tried:
((IOSElement)driver.findElements(MobileBy.className("XCUIElementTypePickerWheel")).get(0)).setValue(countryName); ((IOSElement)driver.findElements(MobileBy.className("XCUIElementTypePickerWheel")).get(0)).sendKeys(countryName);
Link to Appium logs
debug] [XCUITest] Executing command 'setValueImmediate'
[XCUITest] There is currently no way to bypass typing using XCUITest. Setting value through keyboard
[JSONWP Proxy] Proxying [POST /element/F725FBF8-4D89-45EF-A7EC-1EBA2D61E9F4/value] to [POST http://localhost:8100/session/05D96C05-81F1-4089-B914-BD6A7F8259C0/element/F725FBF8-4D89-45EF-A7EC-1EBA2D61E9F4/value] with body: {"value":["N","e","t","h","...
[debug] [WebDriverAgent] Sim: Sep 21 11:51:31 aleks XCTRunner[28375]: Enqueue Failure: UI Testing Failure - Requested adjust to value '(
[debug] [WebDriverAgent] Sim: N,
[debug] [WebDriverAgent] Sim: e,
[debug] [WebDriverAgent] Sim: t,
[debug] [WebDriverAgent] Sim: h,
[debug] [WebDriverAgent] Sim: e,
[debug] [WebDriverAgent] Sim: r,
[debug] [WebDriverAgent] Sim: l,
[debug] [WebDriverAgent] Sim: a,
[debug] [WebDriverAgent] Sim: n,
[debug] [WebDriverAgent] Sim: d,
[debug] [WebDriverAgent] Sim: s
[debug] [WebDriverAgent] Sim: )' which is not one of the possible values Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, United Kingdom for the picker wheel "Austria" PickerWheel /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
The text was updated successfully, but these errors were encountered: