Multi-Page actions
HyperAgent is built around playwright, and offers a natural way to extend the functionality of playwright to also perform tasks like an independent web-agent.
This can be done simply by using the .ai()
method available on all page objects.
Here is a simple example showing how to do this:
Each page can act as a separate web-agent by itself.
All page objects can take in two parameters:
task
: A string describing the task to be completed on this page
Last updated