Closed tang-butian closed 1 year ago
Well, this is not a geckodriver issue. Please consult the Selenium documentation in how correctly setting the geckodriver path if it hasn't been put into a folder which is part of the PATH
environment variable. Also note that geckodriver needs to run on the host machine and not the Android device itself.
Also is there a reason why you are using Fennec (68.0) and not a more recent Firefox (Fenix) that is based on GeckoView. Fennec is no longer supported.
Version: geckodriver 0.27.0 Platform: Adnroid Firefox: fennec-68.9.0.multi.android-i386 Selenium: 3.11 The following error occurs when I run it on Android ` EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'selenium.common.exceptions.WebDriverException'> Error Contents: Message: 'geckodriver' executable needs to be in PATH.
This is my code:
driverPath = get_driver_path('geckodriver') log('Driver path: ' + driverPath) options = webdriver.FirefoxOptions()options.enable_mobile()
` How can I get the Path of the App?