| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template><div><h1 id="页面操作" tabindex="-1"><a class="header-anchor" href="#页面操作"><span>页面操作</span></a></h1>
- <h2 id="打开网页" tabindex="-1"><a class="header-anchor" href="#打开网页"><span>打开网页</span></a></h2>
- <p>访问指定 URL。</p>
- <h3 id="参数" tabindex="-1"><a class="header-anchor" href="#参数"><span>参数</span></a></h3>
- <table>
- <thead>
- <tr>
- <th>参数</th>
- <th>说明</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>URL</td>
- <td>要访问的网址</td>
- </tr>
- <tr>
- <td>等待加载</td>
- <td>等待页面加载完成</td>
- </tr>
- </tbody>
- </table>
- <h3 id="输出" tabindex="-1"><a class="header-anchor" href="#输出"><span>输出</span></a></h3>
- <ul>
- <li><code v-pre>page</code> - 页面实例</li>
- </ul>
- <h2 id="点击元素" tabindex="-1"><a class="header-anchor" href="#点击元素"><span>点击元素</span></a></h2>
- <p>点击页面上的元素。</p>
- <h3 id="参数-1" tabindex="-1"><a class="header-anchor" href="#参数-1"><span>参数</span></a></h3>
- <table>
- <thead>
- <tr>
- <th>参数</th>
- <th>说明</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>选择器</td>
- <td>CSS 选择器或 XPath</td>
- </tr>
- </tbody>
- </table>
- <h2 id="输入文本" tabindex="-1"><a class="header-anchor" href="#输入文本"><span>输入文本</span></a></h2>
- <p>在输入框中填写文本。</p>
- <h3 id="参数-2" tabindex="-1"><a class="header-anchor" href="#参数-2"><span>参数</span></a></h3>
- <table>
- <thead>
- <tr>
- <th>参数</th>
- <th>说明</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>选择器</td>
- <td>输入框选择器</td>
- </tr>
- <tr>
- <td>文本</td>
- <td>要输入的内容</td>
- </tr>
- </tbody>
- </table>
- <h2 id="滚动页面" tabindex="-1"><a class="header-anchor" href="#滚动页面"><span>滚动页面</span></a></h2>
- <p>滚动页面到指定位置。</p>
- </div></template>
|