Skip to content

Commit db00a93

Browse files
fix login url
1 parent f11b2b6 commit db00a93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

NotionWebsitePuppeteer.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ void TryLoginWithLink()
5050

5151
}
5252

53-
Console.WriteLine("Logging in using URL...");
54-
_driver.Navigate().GoToUrl(loginUrl);
53+
Console.WriteLine("Logging in using URL in 30sec...");
54+
Thread.Sleep(30000);
55+
string cleanedUrl = loginUrl.Replace("https://","https").Replace("&", "&").Replace(":", "%3A").Replace("https","https://");
56+
_driver.Navigate().GoToUrl(cleanedUrl);
5557
Thread.Sleep(5000);
5658
}
5759

0 commit comments

Comments
 (0)