Skip to content
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

Safari stops executing commands while running remote iOS tests #36

Open
romek-codes opened this issue Jun 29, 2022 · 1 comment
Open

Comments

@romek-codes
Copy link

romek-codes commented Jun 29, 2022

Hello, I am using the SafariDriver to run tests remotely on a WebApp using Appium, Selenium and Pytest.
The tests work without issues while running them on Windows (Chrome, Firefox, Edge), Android Chrome Remote and MacOS Safari.
Meanwhile I'm encountering an issue while trying to log in into the WebApp using Safari on iOS.

It looks as follows:
During the setup function i execute a type command on the account field to write "User is being created..." just for clarity and so that the NewCommandTimeout doesn't get exceeded while creating an user, which always works and has no issues.
After the user is created, i reload the login page and try to do this:

NavigationFunctions.open_url(sb, LoginPage.URL)
print('1')
sb.find_element(LoginPage.ACCOUNT_FIELD)
print('2')
sb.type(LoginPage.ACCOUNT_FIELD, user_session.user_being_tested['email'])
print('3')
sb.type(LoginPage.PASSWORD_FIELD, user_session.user_being_tested['password'])
sb.click(LoginPage.LOGIN_BTN)

While running this test, it always gets stuck after printing 1 and doesn't produce anymore output until Appium says that the timeout has been exceeded, after that it prints the 2 and gets stuck for a long time again but never prints the 3 and doesn't type anything into the fields, just gets stuck in an endless loop of timing out as you can see at the end of the logs.

My appium logs can be found here:
https://gist.github.com/RomanJus/b9d7eadfc48712032d88178725e98567

I'd appreciate anyone that could point me in a direction on how to fix this issue.

@jlipps
Copy link
Member

jlipps commented Jun 30, 2022

based on the log it is safaridriver which is hanging here. it could have to do with the javascript that is being sent over, perhaps it's hanging the main browser thread. i don't observe any appium issues here, but maybe @mykola-mokhnach can comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants