|
@@ -23,12 +23,12 @@ import re
|
|
|
def brower_start(port):
|
|
|
options = webdriver.ChromeOptions()
|
|
|
|
|
|
- browser = webdriver.Chrome(options=options)
|
|
|
+# browser = webdriver.Chrome(options=options)
|
|
|
# 上面成功再來用docker
|
|
|
-# browser = webdriver.Remote(
|
|
|
-# command_executor='http://127.0.0.1:'+str(port)+'/wd/hub',
|
|
|
-# desired_capabilities=options.to_capabilities()
|
|
|
-# )
|
|
|
+ browser = webdriver.Remote(
|
|
|
+ command_executor='http://127.0.0.1:'+str(port)+'/wd/hub',
|
|
|
+ desired_capabilities=options.to_capabilities()
|
|
|
+ )
|
|
|
return browser
|
|
|
|
|
|
|