Does Azure have api for Playwright for browser automation?

Alok Kumar 20 Reputation points
2025-11-04T15:53:44.65+00:00

I’m working on a tool called AI Browser, and I want to integrate Playwright into it. However, I couldn’t find any Playwright api option on Azure. Is it available there?

Essentially, I’m looking to connect an AI agent to a Playwright browser instance so the agent can control the browser autonomously using AI.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Siva shunmugam Nadessin 3,025 Reputation points Microsoft External Staff Moderator
    2025-11-04T23:21:14.65+00:00

    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.

    User's image

    Thanks.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.