-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
45 lines (36 loc) · 834 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
""" """
__author__ = 'List.Xie'
import json, time
# from excel_driver.excel_read import args2dict
# driver = webdriver.Chrome()
# driver.get("https://www.baidu.com/")
# element = driver.find_element("id", "kw")
# element.send_keys("UI自动化")
# # driver.find_element("id", "su").click()
# def args2dict(value):
# args={}
# for s in value.split(";"):
# d = s.split('=', 1)
# args[d[0]] = d[1]
# return args
#
# s = args2dict("method=id;value=kw;word=接口自动化")
# if print(s) is not None:
# a=int(input())
# assert a==2,"断言失败"
# print('===')
# print('browser=Edge'.split('='))
# print(''.split('=',1))
# args={}
# d=''.split('=',1)
# args[d[0]] = d[1]
# print(args)
# if nam:
# time.sleep(7)
def f():
print('test')
f()
a={}
f(**a)