Skip to content

Commit

Permalink
Merge pull request #163 from kolo-vrat/headless-mode-fix
Browse files Browse the repository at this point in the history
Update users/webdriver.py to fix headless mode
  • Loading branch information
cyberw authored Jan 21, 2024
2 parents 24031f5 + 1761e2b commit 4d284fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust_plugins/users/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class WebdriverClient(webdriver.Remote):
def __init__(self, user: User):
self.user = user
options = Options()
options.headless = self.user.headless
if self.user.headless:
options.add_argument("--headless")
for arg in [
"--disable-translate",
"--disable-extensions",
Expand Down

0 comments on commit 4d284fe

Please sign in to comment.