We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getCookies
1 parent ee86cb5 commit e12f94fCopy full SHA for e12f94f
src/app/naver/pageInteractor.ts
@@ -51,7 +51,12 @@ export default class PageInteractor {
51
}
52
53
async getCookies() {
54
- return await this.page.evaluate(() => document.cookie);
+ const cookies = await this.page.cookies();
55
+ let cookieString = "";
56
+ for (const cookie of cookies) {
57
+ cookieString += `${cookie.name}=${cookie.value}; `;
58
+ }
59
+ return cookieString;
60
61
62
async getLoginStatus(loginURL?: string): Promise<LoginEvent> {
0 commit comments