banking-bot/BankingBot/LoginManagers/LloydsLoginManager.cs
2017-01-25 16:57:20 +00:00

26 lines
738 B
C#

using System;
using BankingBot.Attributes;
using BankingBot.Contracts;
using BankingBot.LoginCredentials;
using OpenQA.Selenium;
namespace BankingBot.LoginManagers
{
[ProviderIdentifier(Enums.Provider.Lloyds)]
public class LloydsLoginManager : IProviderLoginManager
{
//private LloydsLoginCredentials _credentials;
private readonly IBrowserBot _browserBot;
public LloydsLoginManager(IBrowserBot browserBot)
{
_browserBot = browserBot;
}
public void Login(ILoginCredentials credentials)
{
_browserBot.WebDriver.Url = "https://online.lloydsbank.co.uk/personal/logon/login.jsp";
_browserBot.WebDriver.Navigate();
}
}
}