Skip to content

Commit

Permalink
Recode
Browse files Browse the repository at this point in the history
  • Loading branch information
Flash committed Jul 8, 2023
1 parent 83f1509 commit 8ad06f8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Outlook Account Gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public static async Task TypeAndClickNext(string selector, string text)
if (_page == null)
return;


await _page.MainFrame.WaitForSelectorAsync(selector);
await _page.MainFrame.TypeAsync(selector, text);
await _page.Keyboard.PressAsync(Key.Enter);
Expand All @@ -38,12 +37,12 @@ public static async Task Main(string[] args)

Console.WriteLine("Attempting Chromium Download");
await browserFetcher.DownloadAsync(BrowserFetcher.DefaultChromiumRevision);
Console.WriteLine("Chromium Downloaded");

var browser = await Puppeteer.LaunchAsync(new LaunchOptions
{
Headless = false
});
Console.WriteLine("Chromium Downloaded");

_page = await browser.NewPageAsync();

Expand All @@ -62,8 +61,6 @@ public static async Task Main(string[] args)
await _page.Keyboard.PressAsync(Key.Enter);
await _page.Keyboard.PressAsync(Key.ArrowDown);

Thread.Sleep(1000);

await _page.MainFrame.WaitForSelectorAsync("#BirthDay");
await _page.MainFrame.ClickAsync("#BirthDay");
await _page.Keyboard.PressAsync(Key.Enter);
Expand All @@ -78,18 +75,10 @@ public static async Task Main(string[] args)
await _page.MainFrame.WaitForSelectorAsync(okButton);
await _page.MainFrame.ClickAsync(okButton);
await _page.Keyboard.PressAsync(Key.Enter);


Console.WriteLine("Email: " + email);
Console.WriteLine("Password: " + password);


string yesButton = "#idSIButton9";

await _page.MainFrame.WaitForSelectorAsync(okButton);
await _page.MainFrame.ClickAsync(okButton);
await _page.Keyboard.PressAsync(Key.Enter);

Console.ReadLine();
}
}

0 comments on commit 8ad06f8

Please sign in to comment.