标签:yaml

python使用yaml 管理selenium元素的示例

1.所有元素都在PageElement下的.yaml,如图 login_page.yaml文件: username: dec: 登录页 type: xpath value: //input[@class='custom-text'] password: dec: 密码输入框 type: xpath ……