自动化编辑器-插件教程

自动化编辑器-插件教程


打开浏览器

<h1>打开浏览器</h1> <h2>功能描述</h2> <p>打开默认浏览器并访问指定链接。</p> <h2>输入参数</h2> <ul> <li><strong>网址</strong>:字符串(如 <code>&amp;quot;https://example.com&amp;quot;</code>,可选,默认为 <code>&amp;quot;https://www.showdoc.com.cn/chajianjiaocheng/11558940262506443&amp;quot;</code>)。</li> </ul> <h2>输出结果</h2> <ul> <li><strong>执行结果</strong>:   - <code>true</code>(成功时)。   - <code>false</code>(失败时)。</li> </ul> <h2>日志记录</h2> <ul> <li>输入参数:   - <code>网址: &amp;quot;https://example.com&amp;quot;</code> 或 <code>&amp;quot;https://www.showdoc.com.cn/chajianjiaocheng/11558940262506443&amp;quot;</code></li> <li>输出结果:   - <code>执行结果: true</code> 或 <code>false</code></li> <li>日志信息:   - <code>已打开浏览器访问: https://example.com</code>(成功时)。   - <code>打开浏览器失败: 错误信息</code>(失败时)。</li> </ul> <h2>示例</h2> <h3>场景 1:打开默认链接</h3> <ul> <li><strong>输入参数</strong>:   - 网址:未提供(使用默认值)。</li> <li><strong>输出结果</strong>:   - <code>执行结果: true</code></li> <li><strong>日志输出</strong>:   - <code>已打开浏览器访问: https://www.showdoc.com.cn/chajianjiaocheng/11558940262506443</code></li> </ul> <h3>场景 2:打开指定链接</h3> <ul> <li><strong>输入参数</strong>:   - 网址:<code>&amp;quot;https://example.com&amp;quot;</code></li> <li><strong>输出结果</strong>:   - <code>执行结果: true</code></li> <li><strong>日志输出</strong>:   - <code>已打开浏览器访问: https://example.com</code></li> </ul> <h3>场景 3:打开失败</h3> <ul> <li><strong>输入参数</strong>:   - 网址:<code>&amp;quot;https://invalid-url.com&amp;quot;</code></li> <li><strong>输出结果</strong>:   - <code>执行结果: false</code></li> <li><strong>日志输出</strong>:   - <code>打开浏览器失败: 错误信息</code></li> </ul>

页面列表

ITEM_HTML