page.html.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template><div><h1 id="页面操作" tabindex="-1"><a class="header-anchor" href="#页面操作"><span>页面操作</span></a></h1>
  2. <h2 id="打开网页" tabindex="-1"><a class="header-anchor" href="#打开网页"><span>打开网页</span></a></h2>
  3. <p>访问指定 URL。</p>
  4. <h3 id="参数" tabindex="-1"><a class="header-anchor" href="#参数"><span>参数</span></a></h3>
  5. <table>
  6. <thead>
  7. <tr>
  8. <th>参数</th>
  9. <th>说明</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. <tr>
  14. <td>URL</td>
  15. <td>要访问的网址</td>
  16. </tr>
  17. <tr>
  18. <td>等待加载</td>
  19. <td>等待页面加载完成</td>
  20. </tr>
  21. </tbody>
  22. </table>
  23. <h3 id="输出" tabindex="-1"><a class="header-anchor" href="#输出"><span>输出</span></a></h3>
  24. <ul>
  25. <li><code v-pre>page</code> - 页面实例</li>
  26. </ul>
  27. <h2 id="点击元素" tabindex="-1"><a class="header-anchor" href="#点击元素"><span>点击元素</span></a></h2>
  28. <p>点击页面上的元素。</p>
  29. <h3 id="参数-1" tabindex="-1"><a class="header-anchor" href="#参数-1"><span>参数</span></a></h3>
  30. <table>
  31. <thead>
  32. <tr>
  33. <th>参数</th>
  34. <th>说明</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr>
  39. <td>选择器</td>
  40. <td>CSS 选择器或 XPath</td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. <h2 id="输入文本" tabindex="-1"><a class="header-anchor" href="#输入文本"><span>输入文本</span></a></h2>
  45. <p>在输入框中填写文本。</p>
  46. <h3 id="参数-2" tabindex="-1"><a class="header-anchor" href="#参数-2"><span>参数</span></a></h3>
  47. <table>
  48. <thead>
  49. <tr>
  50. <th>参数</th>
  51. <th>说明</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr>
  56. <td>选择器</td>
  57. <td>输入框选择器</td>
  58. </tr>
  59. <tr>
  60. <td>文本</td>
  61. <td>要输入的内容</td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <h2 id="滚动页面" tabindex="-1"><a class="header-anchor" href="#滚动页面"><span>滚动页面</span></a></h2>
  66. <p>滚动页面到指定位置。</p>
  67. </div></template>