UtilSeleniumMicrosoftLiveMailRegister Method
Automate the specified web-browser to register a new mail account at 'https://signup.live.com/'.
Note that this function use random text (gathered from
UtilStringWordLists class properties) to fill the registration form.
Namespace: DevCase.ThirdParty.SeleniumAssembly: DevCase.net48.ThirdParty.Selenium (in DevCase.net48.ThirdParty.Selenium.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static MailAccount MicrosoftLiveMailRegister(
IWebDriver drv,
string nineKwCaptchaApiKey
)
Public Shared Function MicrosoftLiveMailRegister (
drv As IWebDriver,
nineKwCaptchaApiKey As String
) As MailAccount
Dim drv As IWebDriver
Dim nineKwCaptchaApiKey As String
Dim returnValue As MailAccount
returnValue = UtilSelenium.MicrosoftLiveMailRegister(drv,
nineKwCaptchaApiKey)
public:
static MailAccount^ MicrosoftLiveMailRegister(
IWebDriver^ drv,
String^ nineKwCaptchaApiKey
)
static member MicrosoftLiveMailRegister :
drv : IWebDriver *
nineKwCaptchaApiKey : string -> MailAccount
No code example is currently available or this language may not be supported.
- drv IWebDriver
-
An IWebDriver that represents the web browser to automate.
- nineKwCaptchaApiKey String
-
Your API key of http://9kw.eu/ service, required to automate the captcha image solvention.
This function internally create an instance of NineKwCaptchaHelper class with the provided API key.
MailAccount
A
MailAccount object that represents the new registered mail account.
Returns
if the function failed to register the new mail account.
This is a code example to automate Firefox browser.
No code example is currently available or this language may not be supported.
Using svc As FirefoxDriverService = FirefoxDriverService.CreateDefaultService(),
drv As New FirefoxDriver(svc)
Dim account As MailAccount = MicrosoftLiveMailRegister(drv, "{YOUR API KEY HERE}")
Console.WriteLine(account.ToString())
End Using
' Alternative Firefox initialization methodology:
Dim options As New FirefoxOptions With {
.BrowserExecutableLocation = "C:\Program Files\Mozilla Firefox (Developer Edition)\firefox.exe",
.BinaryLocation = "C:\Program Files\Mozilla Firefox (Developer Edition)\firefox.exe",
.EnableDevToolsProtocol = True,
.EnableDownloads = True,
.Proxy = Nothing
}
options.AddArguments("--profile ""C:\\firefox_profile.dev-edition""")
options.AddArguments("-headless") ' https://developer.mozilla.org/en-US/search?q=Headless%20mode
drv = New FirefoxDriver(options)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.