mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 22:02:38 +02:00
remove inappropriate variable names used in the definition of the class WebBrowserEngine.
This commit is contained in:
parent
0700cd2e62
commit
a6f13b6938
1 changed files with 4 additions and 4 deletions
|
|
@ -21,11 +21,11 @@ class WebBrowserEngine:
|
|||
engine = engine or CONFIG.web_browser_engine
|
||||
|
||||
if engine == WebBrowserEngineType.PLAYWRIGHT:
|
||||
web_browser_engine = importlib.import_module("metagpt.tools.web_browser_engine_playwright")
|
||||
run_func = web_browser_engine.PlaywrightWrapper().run
|
||||
module = "metagpt.tools.web_browser_engine_playwright"
|
||||
run_func = importlib.import_module(module).PlaywrightWrapper().run
|
||||
elif engine == WebBrowserEngineType.SELENIUM:
|
||||
web_browser_engine = importlib.import_module("metagpt.tools.web_browser_engine_selenium")
|
||||
run_func = web_browser_engine.SeleniumWrapper().run
|
||||
module = "metagpt.tools.web_browser_engine_selenium"
|
||||
run_func = importlib.import_module(module).SeleniumWrapper().run
|
||||
elif engine == WebBrowserEngineType.CUSTOM:
|
||||
run_func = run_func
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue