Skip to content

Conversation

@tylersnavely-wf
Copy link

Resolves: #49

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really up for discussion. I personally believe that the Appium server should be responsible for this, not the client. If the maintainers decide not to add this, that's totally understandable. It was just helpful for "robustifying" while testing the change.
I'm only running this check on Android because iOS should be back in an unlocked state by the end of the execute call.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree that the server should be responsible for only returning when we're in a known locked state

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so for now, if it's flakey, we can just show users how to add the wait in their own client code. meanwhile, we'll work on making the appium server more responsible :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd love to remove wait in each method and make users insert wait in their own code.
(Other clients also don't have wait in Appium client side.)

@thomascarpentier
Copy link

Hi @jlipps , @tylersnavely-wf

I'm interested to have this functionality in my python code. Do you have some news? This PR is still alive?

@tylersnavely-wf
Copy link
Author

Sorry @thomascarpentier , I had honestly forgotten about this. I really haven't done anything with the project since this was created. It looks like stripping the additions to lock() is all that is needed along with resolving some merge conflicts. I will try to find some time this week to clean this up.

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! I left a comment.

BTW, after merging appium/appium-xcuitest-driver#595, we'll be able to use lock/unlock for XCUITest as well.

@mayuayla
Copy link

Looking forward to be able to use unlock in Python. Thanks for working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants