Created
March 19, 2021 11:53
-
-
Save kblok/19b60e76197c4d8aebaba650b2b1af93 to your computer and use it in GitHub Desktop.
Testing Angular radio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { chromium } = require('playwright'); | |
| (async () => { | |
| const browser = await chromium.launch({headless : false}); | |
| const page = await browser.newPage(); | |
| await page.goto('http://scratchya.com.ar/angular/proyecto021/'); | |
| const elements = await page.$$('mat-radio-button.mat-radio-checked'); | |
| console.log(elements.length); | |
| console.log(await elements[0].innerText()); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment