Hello Alok Kumar,
Yes, Azure does offer support for Playwright through its services, specifically the Microsoft Playwright Testing service and Browser Automation (preview) feature. Here’s how you can get started:
Playwright Workspace: You can create a Playwright Workspace in Azure, which will allow you to automate your browser tasks. You can set it up by following the steps in the Browser Automation documentation.
Setting Up:
- First, create a __Playwright Workspace__ resource.
- Generate an Access Token for the Playwright Workspace.
- Connect to the workspace by using a serverless connection within your Azure AI Foundry project.
Using Playwright: Playwright provides a unified API for automating browsers. You can install it locally or use the Azure service to run your tests. Here’s a basic outline of the installation:
npm i -D @playwright/test
npx playwright install
More detailed information can be found in the Playwright Testing documentation.
Controlling the Browser: Finally, if your AI agent needs to control the browser autonomously, you might want to implement connections to your AI model that can send commands to the Playwright instance.
If my answer helped you resolve your issue, please consider marking it as the correct answer and upvote it. This helps others in the community find solutions more easily.
Thanks.