From b3c0207751a2598c86c80da69ab026c911d5c151 Mon Sep 17 00:00:00 2001 From: hzq18867809616 <123551005@qq.com> Date: Thu, 1 Jul 2021 19:54:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0webtest/config/qiyu.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webtest/config/qiyu.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 webtest/config/qiyu.yaml diff --git a/webtest/config/qiyu.yaml b/webtest/config/qiyu.yaml new file mode 100644 index 0000000..d9fa362 --- /dev/null +++ b/webtest/config/qiyu.yaml @@ -0,0 +1,36 @@ +[base_info] + base_url: "https://oygs.qiyukf.netease.com/" + +[LoginPage] + url: "login" + account: "hzq" + password: "abc123" + account_locator: ("xpah","//input[@name='username']") + password_locator: ("xpath","//input[@name='password']") + login_button_locator: ("xpath","//button[@class='u-btn']") + +[HomePage] + welcome_close_loactor: ("xpath","//button[@class='fishd-modal-close']") + ai_robot_locator: ("xpath","//div[text()='在线机器人']") + +[SelectRobotPage] + default_robot_locator: ("xpath", "//a[@class='link']") + + +[QuestionLibPage] + question_library_locator: ("xpath","//a[text()='问题库']") + add_button: ("xpath", "//button[@class="fishd-btn fishd-btn-primary"]/span") + batch_operation_locator: ("xpath", "//button[@class="fishd-btn"]/span[text()='批量操作']") + import_button_locator: ("xpath", "//button[@class="fishd-btn"]/span[text()='导入']") + search_input_locator: ("xpath","//input[@class='fishd-input']") + edit_button_locator: ("xpath", "//div[@class='m-questions-operation']/i[1]") + delete_button_locator: ("xpath", "//div[@class='m-questions-operation']/i[2]") + classify_edit_locator: ("xpath", "//div[@class='m-questions-classify-head']/i[1]") + question_input_locator: ("xpath", "//input[@placeholder='填写访客可能会问的问题']") + answer_input_locator: ("xpath", "//div[@data-placeholder="请输入标准答案"]") + question_classify_locator: ("xpath", "//input[@id='categoryId']") + + + + + -- GitLab