|
@@ -44,12 +44,13 @@ def serive_create(profilepath):
|
|
|
def brower_start(port):
|
|
|
options = webdriver.ChromeOptions()
|
|
|
# browser = webdriver.Chrome(options=options)
|
|
|
+ browser = webdriver.Chrome(options=options)
|
|
|
|
|
|
- browser = webdriver.Remote(
|
|
|
- command_executor='http://127.0.0.1:'+str(port)+'/wd/hub',
|
|
|
- # command_executor='http://192.53.174.202:'+str(port)+'/wd/hub',
|
|
|
- desired_capabilities=options.to_capabilities()
|
|
|
- )
|
|
|
+# browser = webdriver.Remote(
|
|
|
+# command_executor='http://127.0.0.1:'+str(port)+'/wd/hub',
|
|
|
+# # command_executor='http://192.53.174.202:'+str(port)+'/wd/hub',
|
|
|
+# desired_capabilities=options.to_capabilities()
|
|
|
+# )
|
|
|
return browser
|
|
|
|
|
|
|