Comments (10)
Thanks @KazuCocoa . That was the reason why I needed more extensive testing. It might the idea with mobile commands won't work at all and it will be necessary to perform perms adjustments on session startup stage before WDA init.
Anyway. This stuff will require more work.
FYI @dpgraham
from appium-ios-simulator.
@KazuCocoa Can you please try #190 ?
from appium-ios-simulator.
from appium-ios-simulator.
@mykola-mokhnach
Thanks and sorry, the current logic worked as same as #190 . My scenario was wrong...
(So, the 2 and 3 in the description was my bad.)
https://github.com/appium/ruby_lib_core/pull/160/files#diff-642294321e09de07e102867a6bd7e804R18 is fixed version.
from appium-ios-simulator.
Resetting simulator happens in both way. So, we need to re-connect WDA session after the permission change as you addressed the above.
from appium-ios-simulator.
So there are two question:
- Does the previous implementation (direct access to TCC) work the same as the one, that uses WIX tools?
- restarting the springboard service also resets WDA?
from appium-ios-simulator.
Does the previous implementation (direct access to TCC) work the same as one, that uses WIX tools?
Yes.
restarting the springboard service also resets WDA?
Yes. For example, after setPermission, below error happened.
@@driver.switch_to.alert.text
Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100
from UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100
Even @@driver.execute_script('mobile: getPermission', {service: 'calendar',bundleId: 'com.example.apple-samplecode.UICatalog'})
worked. (Since the getPermission worked for simulator directly.
from appium-ios-simulator.
Yes. For example, after setPermission, below error happened.
This means it will be necessary to remove setPermission mobile command and move it to capabilities, so we can set permissions before WDA init, but after AUT is installed. getPermissions can be kept though.
Thanks for your assistance
from appium-ios-simulator.
Exactly 👍
from appium-ios-simulator.
I think having it as a capability is a better approach anyway.
from appium-ios-simulator.
Related Issues (12)
- Should be able to get the log path for a simulator HOT 1
- cleanup code in there,
- minor cleanup HOT 1
- Action required: Greenkeeper could not be activated 🚨
- 1.5 cleanup HOT 1
- isShutdown() not working HOT 4
- Error: Appium - iOS Simulator -[WD Proxy] connect ECONNREFUSED 127.0.0.1:8080 HOT 9
- Settings update methods should indicate their own status
- Xcode 9.3 wrong path in buildBundlePathMap HOT 4
- about log HOT 1
- locale bug HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-ios-simulator.