Merge pull request #949 from HuangShiqing/master

Fix the binary file not found bug when using Docker
This commit is contained in:
Naibo Wang
2025-10-20 14:40:35 +08:00
committed by GitHub

View File

@@ -2416,6 +2416,8 @@ if __name__ == '__main__':
# Headless mode
# options.add_argument("--headless")
# print("Headless mode")
options.binary_location = ""
options.extensions.clear()
browser_t = MyChrome(command_executor=c.docker_driver, options=options, mode='remote_driver')
elif browser == "edge":
from selenium.webdriver.edge.service import Service as EdgeService