csdn/CSDN博文备份/AmazonNovaAct代码测试-149522301.md
2025-07-22 03:50:23 +08:00

1 line
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>测试使用下面的 Python 代码:</p> <br><pre><br></pre> <br><pre><code>from nova_act import NovaAct<br><br>with NovaAct(starting_page="https://www.isharkfly.com") as nova:<br> nova.act("Click categories")<br> nova.act("Click discourse")<br> nova.act("search for Discourse")<br> nova.act("Click first result")<br></code></pre> <br><p>上面代码的作用是使用自然语言来描述测试Amazon Nova 将会对自然语言进行翻译然后调用 playwright 来进行测试。</p> <br><p>给我的感觉就是在 playwright 上套了一层自然语言解释,然后把自然语言翻译成 playwright 代码,最后由 playwright 代码来执行后返回给 LLM让 LLM 来做出说明。</p> <br><p>注意 IDEA 下面的提示,每一步都会执行一次上面的过程。</p> <br><p></p> <br><p></p> <br><div class="img-center"><br> <a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/8/2/8232cad780f3ece7a7f63d6b2e6e01a9cc260d87.jpeg" rel="nofollow"><img alt="2025-07-21_15-41-20" height="500" src="https://i-blog.csdnimg.cn/img_convert/14e0679af14c4e7d5d2795e67bd94537.jpeg" width="477" /></a><br></div> <br><p></p> <br><p></p> <br><p>给我目前的感觉就是太慢,可能要比 playwright 的代码直接执行要慢不少。</p> <br><p>整个上面的几个测试步骤耗时 2 分25 秒。</p> <br><p>因可以直接使用自然语言,只需要很少的 Python 代码就可以完成测试和数据拉取。</p> <br><p>现在不太明确这个情况是一种优势还是有性能提高的空间。</p> <br><p></p> <br><p><a href="https://www.isharkfly.com/t/amazon-nova-act/17563" title="Amazon Nova Act 代码测试 - 测试发布 - iSharkFly" rel="nofollow">Amazon Nova Act 代码测试 - 测试发布 - iSharkFly</a></p>