real device, ios , (iOS 9.3.5 or iOS 10.1.1)
i can run WebDriverAgent in real device, and when i run appium script, after launching webdriveragent, there is nothing to print ,and appium does not work
after launching WebDriverAgent , the next script does't execute, strunk in.
Can you try it with updated appium-xcuitest-driver component. Set its version to 2.5.1/2.5.0
i'd like to update appium-xcuitest-driver, but i don't know how to update appium-xcuitest-driver to 2.5.1/2.5.0?
i just execute npm install -g appium
but the appium-xcuitest-driver 's version is 2.4.2
npm uninstall -g appium && npm install -g appium --no-shrinkwrap
This will update all the components. And if you want only xcuitest driver to be updated:
npm remove appium-xcuitest-driver
npm install firstname.lastname@example.org
thanks very much!
i will update all components
and then, i will try to execute appium script on real device;
and give you the execute results.
after i update all components as your advise
the appium script runs well!
and i have a question that
we konw the solution to solve this kind of problem, but why don't merge the change in the branch of WebDriverAgent?
@wangtao169447 Because Appium team does not have a control over WDA project. It's maintained by Facebook developers and we just create pull requests there or report bugs and they decide what to merge and do code reviews. You can try to convince Facebook dudes yourself if you want an issue fix to be merged/reviewed faster ;)
and i have a problem about ios UIAutomation .
after i run a appium script , there create a lot of files in this dictory "/Users/wangtao169447/Library/Developer/Xcode/DerivedData/WebDriverAgent-abmfbvfzvqhslmgulbhfapoduvfs"
however, after i run a appium script of android uiautomation, did't creat a log of tmp files;
and i wonder how to do with this kind of problem?
Set either preventWDAAttachments or clearSystemFiles capability to True. See https://github.com/appium/appium-xcuitest-driver#usage for more details
thanks for your introduce. and i will have a try , and read the usage. :)
i also find that in iOS UIAutomate, it runs very slow and use much CPU and Memory resources than Android UIAutomate ; and slower than the former UIAutomation framework after i changed to XCUITest.
i found it is xcodebuild use a lot of CPU & Memory resources
i wonder the reason why the UIAutomate become slow is because the XCUITest?
and the increase of the resource usage is also because the XCUITest?
because i found it is really very slow. and i want to do something to speed up
and i also wonder there have some ways to hide the keyboard like android UIAutomate ,use Appium Android input XXXX app?
set capability like
You can try to convince Facebook dudes yourself if you want an issue fix to be merged/reviewed faster ;)
OK，i will have a try.
and i tried the solution, found the solution works well. and the faster they merge the solution , it will help more people.
and i also write a blog to introduce the solution in chinese , and hope it can help more people . :)
@wangtao169447 , I am facing the issues with launching the test on real device .I have ran the following sample code to check whether the appium is perfectly installed.
DesiredCapabilities capabilities = new DesiredCapabilities();
driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
Now I have following doubts 👍
It would be helpful if anyone code provide sample code to run appium on real device .
I think you can have a try ,like this page : https://github.com/appium/appium-xcuitest-driver
have a try, and good luck!