From db00a932d5209c2c5481f9818af46b9c8eb9e151 Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Thu, 23 Jan 2025 11:00:52 +0100 Subject: [PATCH] fix login url --- NotionWebsitePuppeteer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NotionWebsitePuppeteer.cs b/NotionWebsitePuppeteer.cs index 813da7d..1bab3cb 100644 --- a/NotionWebsitePuppeteer.cs +++ b/NotionWebsitePuppeteer.cs @@ -50,8 +50,10 @@ void TryLoginWithLink() } - Console.WriteLine("Logging in using URL..."); - _driver.Navigate().GoToUrl(loginUrl); + Console.WriteLine("Logging in using URL in 30sec..."); + Thread.Sleep(30000); + string cleanedUrl = loginUrl.Replace("https://","https").Replace("&", "&").Replace(":", "%3A").Replace("https","https://"); + _driver.Navigate().GoToUrl(cleanedUrl); Thread.Sleep(5000); }