-
-
Save katawara/50267c41ed249084b3964de80a59fbcc to your computer and use it in GitHub Desktop.
Gauge and Playwright sample code
This file contains 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
export default class Sample { | |
@Step('ボタン <text> をクリック') | |
private static async clickButton(text: string) { | |
const page = Scenario.getPage(); | |
const locator = page.locator(`button:has-text("${text}")`).first(); | |
await locator.click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment