It is currently not possible to to give geckodriver the path to an
application bundle, for example
you must give it the absolute path to the executable binary inside
the bundle, e.g.
It would be a considerable user experience improvement if we would
allow application bundle paths.
See https://github.com/mozilla/geckodriver/issues/1488 for an example
of how this is confusing to users.
To fix this bug, you would first have to add some code to mozrunner
to extrapolate from a given path what the real executable path
is. Specifically on macOS, this could involve a check if the given
path is an application bundle (is it a directory, and does it contain
an executable inside it called firefox-bin?), and if so return the
real path. On other systems this could be a no-op and the input
path could be returned straight.
I landed a documentation change in
that we don’t support bundle paths, and this would have to be
reverted as part of this change.