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); }