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

Make adb stop forwarding port after test finish #405

Closed
azarouski opened this issue Jun 5, 2024 · 1 comment
Closed

Make adb stop forwarding port after test finish #405

azarouski opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@azarouski
Copy link
Contributor

azarouski commented Jun 5, 2024

tests fails with exception:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An 
unknown server-side error occurred while processing the command. Original error: An unknown server-side error 
occurred while processing the command. Original error: unknown error: Failed to forward ports to device R5CT31NB5ET. 
No port chosen: . Perhaps your adb version is out of date. ChromeDriver 2.39 and newer require adb version 1.0.38 or 
newer. Run 'adb version' in your terminal of the host device to find your version of adb.[[[--udid R5CT31NB5ET --name 
Galaxy_S22_Ultra --sessionId cf7691f7-4f2a-4a92-8680-5cb18830b12b]]]
@azarouski azarouski added the bug Something isn't working label Jun 5, 2024
@azarouski azarouski added this to the 2.1.3 milestone Jun 5, 2024
vdelendik added a commit that referenced this issue Jun 5, 2024
#405: added adb forward removal to fix mobile web testing
@vdelendik
Copy link
Contributor

fixed. successfully tested on patched production env.
adb forward for android chrome devtools port could be started 1st time only. For 2nd etc session on this device it just blocked adb forward request and after starting chrome everything crashed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants