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.
waitForSelector
1 parent 5cf4a8e commit d9d43b3Copy full SHA for d9d43b3
src/app/naver/pageInteractor.ts
@@ -52,17 +52,13 @@ export default class PageInteractor {
52
return "success";
53
}
54
55
- await this.page.waitForSelector("#direct_call");
56
-
57
- const otpElementDisplayStyle = await this.page.$eval(
58
- "#remail_btn1",
59
- (button) => {
60
- if (!(button instanceof HTMLElement)) {
61
- return;
62
- }
63
- return button.style.display;
+ const otpElementDisplayStyle = await this.page.evaluate(() => {
+ const button = document.querySelector("#remail_btn1");
+ if (!(button instanceof HTMLElement)) {
+ return;
64
65
- );
+ return button.style.display;
+ });
66
if (otpElementDisplayStyle !== "") {
67
return "otp-required";
68
0 commit comments