Remove context from Playwright object
This commit is contained in:
parent
4b63189917
commit
e9d915f8a8
1 changed files with 9 additions and 12 deletions
|
|
@ -18,7 +18,6 @@ import (
|
|||
type Playwright struct {
|
||||
PW *playwright.Playwright
|
||||
Browser playwright.Browser
|
||||
BrowserContext playwright.BrowserContext
|
||||
Page playwright.Page
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +40,6 @@ func (pw *Playwright) RestartBrowser() (newPW Playwright, err error) {
|
|||
return Playwright{
|
||||
PW: pw.PW,
|
||||
Browser: browser,
|
||||
BrowserContext: context,
|
||||
Page: page,
|
||||
}, nil
|
||||
}
|
||||
|
|
@ -98,7 +96,6 @@ func InitPlaywright() (Playwright, error) {
|
|||
return Playwright{
|
||||
PW: pw,
|
||||
Browser: browser,
|
||||
BrowserContext: context,
|
||||
Page: page,
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue