{"repo":"estruyf/playwright-m365-helpers","free":true,"listed":false,"github":"https://github.com/estruyf/playwright-m365-helpers","clone":"git clone https://github.com/estruyf/playwright-m365-helpers.git","description":"A set of helpers for creating E2E tests for your Microsoft 365 projects using Playwright","language":"TypeScript","stars":15,"topics":["authentication","e2e","e2e-testing","microsoft","microsoft365","power-platform","testing"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Playwright helpers for Microsoft 365 projects This repository contains a set of Playwright helpers for Microsoft 365 projects. Installation Usage Login to Microsoft 365 Create a new login.setup.ts file in your tests folder and add the following code: [!NOTE] In case of using Time-based One-Time Password (TOTP) for two-factor authentication, you can provide the secret key as the fourth parameter. To know more about signing in with TOTP, check the automating Microsoft 365 login with multi-factor authentication in Playwright tests article. Create a new project in the playwright.config.ts file with the following code: Power Platform helpers There are various helpers for Power Platform projects: Locators - getAppFrame - Get the iframe of the Power Platform app - getControlByName - Get the control by name - getControlPart - Get the control by its part name - getButton - Get the button by name - getDropdown - Get the dropdown by name - selectDropdownOption - Select the dropdown option by its value - getGalleryItems - Get the gallery items - getInput - Get the input by name - getLabel - Get the label by name - getRadio - Get the radio by name - selectRadioOption - Select the radio option by its value - getRadioOptions - Get the radio option(s) - getScreen - Get the screen by name - getToggle - Get the toggle by name API helpers In order to use the API helpers, you need to know the Power Platform connector ID. You can find this ID if you are going to your Power Platform connections pa","default_branch":null,"files":null,"tree":[],"storefront":"/r/estruyf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/estruyf/playwright-m365-helpers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}