Created
May 7, 2021 15:46
-
-
Save BashkaMen/35330f860ff8988c004c18a568206a55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class SonyReger | |
{ | |
public static async Task Register(LinkedAccountsModel InputLinkedAccountsModel, ProxyModel proxy) | |
{ | |
await Task.Delay(1); | |
using (var wb = DriverBuilder.MakeDriverForSony()) | |
{ | |
wb.ClickEx(By.CssSelector("asdasd")); | |
wb.sendKeyEx(); | |
} | |
} | |
public static async Task Main1() | |
{ | |
var acccount = ...; | |
var proxies = ...; | |
for (int i = 0; i < 5; i++) | |
{ | |
try | |
{ | |
await Register(acccount, proxies); | |
await Save(account); | |
return; | |
} | |
catch (Exception e) | |
{ | |
Console.WriteLine(e); | |
throw; | |
} | |
} | |
} | |
} | |
public static class DriverBuilder | |
{ | |
public static IWebDriver MakeDriverForSony(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment