Open AlexandraMoga opened 1 year ago
[GeckoDriver@7133 (736c9dd5)] Got response with status 500: {"value":{"error":"unknown error","message":"adb error: couldn't create file: Permission denied","stacktrace":""}}
As you can see there the error os coming from geckodriver itself. You could assign the verbosity
capability to trace
in order to see more detailed geckodriver output and attach the resulting log here
also I can observe this error in the linked issue report:
[debug] [GeckoDriver@03b7 (1d39ac55)] 1677837573945 mozdevice TRACE execute_host_command: >> "shell:su 0 chmod -R 777 /sdcard/Android/data/org.mozilla.fenix/files/test_root/org.mozilla.fenix-geckodriver-profile"
have you tried to run it manually from the terminal? what was the output?
So, if I run adb shell "su 0 chmod -R 777 /sdcard/Android/data/org.mozilla.fenix/files/test_root/org.mozilla.fenix-geckodriver-profile"
from the terminal I receive a No such file or directory
response.
If I check the emulator file system, I can see that these files don't exist on the sdcard
. Also, given the fact that the emulator is rooted, shouldn't internal storage take precedence when a new file is created? I am a bit confused why the program chooses the external storage.
I don't know. I assume there might be some bug in the geckodriver itself, so it verifies folder existence first or runs mkdir -p
before running chmod
You could probably also play with appium:androidStorage capability value
Original report - https://github.com/mozilla/geckodriver/issues/2092; please check comments there for additional logs
System
Testcase
I'm simply traying to launch Firefox on an android device (Pixel 5, Android 11 emulator with Android studio) using the capabilities suggested in this documentation but the session hangs and finally exists with error
adb error: couldn't create file: Permission denied
. I'm not sure if there is some issue at my side (capabilities are visible in the stacktrace) or if this is a geckodriver issue.Stacktrace