WebDriverException occurs
- Dominant language
- Python
- Stars
- 18.2k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Description
## Expected Behavior
I want to know how to run grab_followers using geckodriver.
## Current Behavior
I have the latest version of Firefox (94.0.2) and the latest version of geckodriver (0.30.0), but when I run grab_followers I get a WebDriverException.
Looking at the output, it seems to be looking for a chromedriver, is it possible to pre-specify the webdriver that instapy uses?
Note that I have tried like_by_tag in the quick reference and it works fine.
I don't know why grab_followers doesn't work.
Any advice would be appreciated in advance.
```
._. ._. ._. ._. ._. ._. ._. ._.
Custom workspace set: "./InstaPy" :]
InstaPy Version: 0.6.14
._. ._. ._. ._. ._. ._.
Workspace in use: "./InstaPy"
Traceback (most recent call last):
File "like_by_followers.py", line 14, in
session = InstaPy(username=USERNAME,
File "C:\Users\ogawa\AppData\Roaming\Python\Python38\site-packages\instapy\instapy.py", line 327, in __init__
self.browser, err_msg = set_selenium_local_session(
File "C:\Users\ogawa\AppData\Roaming\Python\Python38\site-packages\instapy\browser.py", line 131, in set_selenium_local_session
browser.install_addon(create_firefox_extension(), temporary=True)
File "C:\Users\ogawa\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\firefox\webdriver.py", line 253, in install_addon
return self.execute("INSTALL_ADDON", payload)["value"]
File "C:\Users\ogawa\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 424, in execute
self.error_handler.check_response(response)
File "C:\Users\ogawa\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line
247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Expected absolute path: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://remote/content/marionette/addon.js :: install :: line 70" data: no]
Stacktrace:
WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
UnknownError@chrome://remote/content/shared/webdriver/Errors.jsm:488:5
install@chrome://remote/content/marionette/addon.js:72:13
GeckoDriver.prototype.installAddon@chrome://remote/content/marionette/driver.js:2655:16
despatch@chrome://remote/content/marionette/server.js:306:40
execute@chrome://remote/content/marionette/server.js:279:16
onPacket/<@chrome://remote/content/marionette/server.js:252:20
onPacket@chrome://remote/content/marionette/server.js:253:9
_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20
```
## InstaPy configuration
```
from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace
work_dir = "./"
set_workspace(path=work_dir)
# get an InstaPy session!
session = InstaPy(username=USERNAME,
password=PASSWORD,
multi_logs=True
)
with smart_run(session):
followers = session.grab_followers(username=INFLUENCER, amount="full", live_match=True, store_locally=True)
print(followers)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.