Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Launch web application on BeforeSuite hook #4711

Unanswered
rkgour7492 asked this question in Q&A
Discussion options

I am using codeceptjs+playwright. I want to launch the web applciation on BeforeSuite and perform some common steps on UI which will be common for all scenarios and will save a lot of time for execution. However, it seems the page is not instantiated on beforeSuite level and hence my execution fails in launching the url with below error :

Cannot read properties of undefined (reading 'goto')
at Playwright.amOnPage (node_modules\codeceptjs\lib\helper\Playwright.js:968:21)
at Step.run (node_modules\codeceptjs\lib\step.js:123:49)
at C:\Users\rgour\automatedtests\node_modules\codeceptjs\lib\actor.js:138:23

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /