-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question:Re useable of step defination method #237
Comments
You can save the entire step into a const and export it and then call the const into the step where you want to re-use
|
test
30 Oct 2024 Assume I have some steps defined in I have another method which would be doing the same |
GO_TO_PLAYWRIGHT_HOME is NOT a method in commonPage. Your Steps would look like this:
|
Is there any way where we can use the already defined step defination method in any other step defination, like the same way we can do in cucumber java bdd framework.
cucumber java bdd example:
There are 2 different steps but I am able to use that step defination in another step defination.
Can i achieve this in playwright-bdd, without creating any seperate function.
The text was updated successfully, but these errors were encountered: