Git Product home page Git Product logo

Comments (10)

mykola-mokhnach avatar mykola-mokhnach commented on July 19, 2024 1

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.

mykola-mokhnach avatar mykola-mokhnach commented on July 19, 2024 1

@KazuCocoa Can you please try #190 ?

from appium-ios-simulator.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

cc @mykola-mokhnach

from appium-ios-simulator.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

@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.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

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.

mykola-mokhnach avatar mykola-mokhnach commented on July 19, 2024

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.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

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.

mykola-mokhnach avatar mykola-mokhnach commented on July 19, 2024

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.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

Exactly 👍

from appium-ios-simulator.

dpgraham avatar dpgraham commented on July 19, 2024

I think having it as a capability is a better approach anyway.

from appium-ios-simulator.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.