Skip to content

Commit

Permalink
Remove selenium from dependencies (and thus also trio)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Aug 4, 2023
1 parent 8a622bb commit 1081cda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion locust_plugins/users/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
import time
from locust import User
from locust.exception import CatchResponseError, LocustError
from selenium import webdriver
import logging
import sys

try:
from selenium import webdriver
except ModuleNotFoundError:
logging.error("You need to install selenium >=4.0.0 manually (because it is incompatible with Playwright)")
sys.exit(1)

from selenium.common.exceptions import (
TimeoutException,
NoSuchElementException,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"python-dateutil",
"pymongo",
"confluent-kafka",
"selenium>=4.0.0",
# "selenium>=4.0.0", # because this installs trio which is kind of incompatible with playwright, you need to do this manually
"lxml",
"opencensus-ext-azure",
"paho-mqtt>=1.5.0",
Expand Down

0 comments on commit 1081cda

Please sign in to comment.