|
@@ -76,17 +76,20 @@ def process_query(qs):
|
|
def run_once(q):
|
|
def run_once(q):
|
|
global driver
|
|
global driver
|
|
result=[]
|
|
result=[]
|
|
- client = docker.from_env()
|
|
|
|
- ls=client.containers.list()
|
|
|
|
- print(ls)
|
|
|
|
- ls[0].restart()
|
|
|
|
|
|
+# client = docker.from_env()
|
|
|
|
+# ls=client.containers.list()
|
|
|
|
+# print(ls)
|
|
|
|
+# ls[0].restart()
|
|
|
|
|
|
time.sleep(10)
|
|
time.sleep(10)
|
|
options = webdriver.ChromeOptions()
|
|
options = webdriver.ChromeOptions()
|
|
|
|
|
|
- driver = webdriver.Remote(
|
|
|
|
- command_executor='http://127.0.0.1:4444/wd/hub',
|
|
|
|
|
|
+ driver = webdriver.Chrome(
|
|
desired_capabilities=options.to_capabilities())
|
|
desired_capabilities=options.to_capabilities())
|
|
|
|
+
|
|
|
|
+# driver = webdriver.Remote(
|
|
|
|
+# command_executor='http://127.0.0.1:4444/wd/hub',
|
|
|
|
+# desired_capabilities=options.to_capabilities())
|
|
driver.set_window_size(1400,1000)
|
|
driver.set_window_size(1400,1000)
|
|
|
|
|
|
print(q)
|
|
print(q)
|