第一步:
1.创建ini后缀的文件,用以保存之后所有的变量。具体格式:
user_info 为组的名称
user_name为字段的名称
使用configparser读取时需要传入两个参数,一个组名,一个字段名
[user_info]
user_name:xpath,//input[@autofocus="autofocus"]
user_pass:xpath,//input[@type="password"]
第一步:
1.创建ini后缀的文件,用以保存之后所有的变量。具体格式:
user_info 为组的名称
user_name为字段的名称
使用configparser读取时需要传入两个参数,一个组名,一个字段名
[user_info]
user_name:xpath,//input[@autofocus="autofocus"]
user_pass:xpath,//input[@type="password"]