Launch web application on BeforeSuite hook #4711
              
                Unanswered
              
          
                  
                    
                      rkgour7492
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions