qiyu.yaml 1.4 KB
Newer Older
hzq18867809616's avatar
hzq18867809616 已提交
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
[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']")