Class SantanderWebSite
- java.lang.Object
-
- de.frankmuenster.mahoe.web.AbstractWebSite<org.openqa.selenium.WebDriver,I,M>
-
- de.frankmuenster.mahoe.web.AbstractSeleniumWebSite<SantanderWebAccountInformation,SantanderBankMessages>
-
- de.frankmuenster.mahoe.banks.santander.web.SantanderWebSite
-
- Type Parameters:
I
- SantanderWebAccountInformationM
- SantanderBankMessages
- All Implemented Interfaces:
WebSite<SantanderWebAccountInformation>
public class SantanderWebSite extends AbstractSeleniumWebSite<SantanderWebAccountInformation,SantanderBankMessages>
Santander Bank Website.- Author:
- Frank Münster
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SantanderWebSite.DocumentType
An Enum for the existing document types in the document box
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CLASS_NAME_FOR_LOADING_OVERLAY
Class name of the loading overlay div-
Fields inherited from class de.frankmuenster.mahoe.web.AbstractWebSite
accountInfo, NON_BREAK_SPACE, TABLE_TAG, webClient
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SantanderWebSite(de.willuhn.jameica.hbci.rmi.Konto konto, de.willuhn.jameica.hbci.rmi.KontoType type, java.lang.String userName)
Erstellt ein neues Webseiten-Objekt zur Kontaktaufnahme mit der BCEE.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createSepaTransfer(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung aUeberweisung)
Creates the sepa transfer.SantanderWebAccountInformation
getAccountInformation()
Gets the account information.static byte[]
getAccountSheetAsByteArray(org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> document, org.openqa.selenium.WebDriver webClient)
Returns the account sheet as byte arrayjava.util.List<MahoeKontoauszugPDF>
getAccountSheets(SantanderWebAccountInformation accountInfo)
Returns a list of new accounts sheets to save.java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz>
getBookedTransactions()
Gets the booked transactions.ClearingEntry
getClearingEntry()
Returns the clearing transactionstatic SantanderWebSite
getInstance(de.willuhn.jameica.hbci.rmi.Konto konto)
Liefert die Instance der WebSeite.java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz>
getPreBookedTransactions()
Gets the pre booked transactions.protected java.util.Calendar
getStartdate()
Gets the startdate.boolean
isStillLoggedIn()
Checks if is still logged in.protected boolean
isSupporting(de.willuhn.jameica.hbci.rmi.KontoType type)
Üperfüpt, ob die WebSeiteninstance den Kontotypen unterstützt.void
login(char[] password, java.lang.String... loginParams)
Login.void
logoff()
Logoutstatic void
waitForLoadingOverlay(org.openqa.selenium.WebDriver driver)
Waits until the loading overlayLoadingOverlay__overlay___GvaFv
is invisible.-
Methods inherited from class de.frankmuenster.mahoe.web.AbstractSeleniumWebSite
checkSeleniumDriverSet, elementExits, getDownloadsDirectory, getWebClient, saveCookies, shutDown
-
Methods inherited from class de.frankmuenster.mahoe.web.AbstractWebSite
getGenericClassParameter, getMessages, setAccountBasicInfo
-
-
-
-
Field Detail
-
CLASS_NAME_FOR_LOADING_OVERLAY
protected static final java.lang.String CLASS_NAME_FOR_LOADING_OVERLAY
Class name of the loading overlay div- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SantanderWebSite
protected SantanderWebSite(de.willuhn.jameica.hbci.rmi.Konto konto, de.willuhn.jameica.hbci.rmi.KontoType type, java.lang.String userName) throws WebSiteException
Erstellt ein neues Webseiten-Objekt zur Kontaktaufnahme mit der BCEE.- Parameters:
konto
- the kontotype
-userName
- the user name- Throws:
WebSiteException
- the web site exception
-
-
Method Detail
-
getAccountSheetAsByteArray
public static byte[] getAccountSheetAsByteArray(org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> document, org.openqa.selenium.WebDriver webClient) throws WebSiteException
Returns the account sheet as byte array- Parameters:
document
- the message from the postbox with download link insidewebClient
-- Returns:
- the account sheet as byte array
- Throws:
WebSiteException
- if the download of the account sheet failed
-
getInstance
public static SantanderWebSite getInstance(de.willuhn.jameica.hbci.rmi.Konto konto) throws WebSiteException, de.willuhn.util.ApplicationException
Liefert die Instance der WebSeite.- Parameters:
konto
- the konto- Returns:
- die WebSeite
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception
-
waitForLoadingOverlay
public static void waitForLoadingOverlay(org.openqa.selenium.WebDriver driver)
Waits until the loading overlayLoadingOverlay__overlay___GvaFv
is invisible.- Parameters:
driver
- with the current page
-
createSepaTransfer
public void createSepaTransfer(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung aUeberweisung) throws WebSiteException, de.willuhn.util.ApplicationException
Creates the sepa transfer.- Parameters:
aUeberweisung
- the a ueberweisung- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
WebSite.createSepaTransfer(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung)
-
getAccountInformation
public SantanderWebAccountInformation getAccountInformation() throws WebSiteException, de.willuhn.util.ApplicationException
Gets the account information.- Returns:
- the account information
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
WebSite.getAccountInformation()
-
getAccountSheets
public java.util.List<MahoeKontoauszugPDF> getAccountSheets(SantanderWebAccountInformation accountInfo) throws WebSiteException
Description copied from interface:WebSite
Returns a list of new accounts sheets to save.- Parameters:
accountInfo
- the account information- Returns:
- a list with new account sheets
- Throws:
WebSiteException
- See Also:
WebSite.getAccountSheets(WebAccountInformation)
-
getBookedTransactions
public java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz> getBookedTransactions() throws WebSiteException, de.willuhn.util.ApplicationException
Gets the booked transactions.- Returns:
- the booked transactions
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
WebSite.getBookedTransactions()
-
getClearingEntry
public ClearingEntry getClearingEntry()
Returns the clearing transaction- Returns:
- the clearing transaction
-
getPreBookedTransactions
public java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz> getPreBookedTransactions() throws WebSiteException, de.willuhn.util.ApplicationException
Gets the pre booked transactions.- Returns:
- the pre booked transactions
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
WebSite.getPreBookedTransactions()
-
isStillLoggedIn
public boolean isStillLoggedIn() throws WebSiteException
Checks if is still logged in.- Returns:
- true, if is still logged in
- Throws:
WebSiteException
- the web site exception- See Also:
WebSite.isStillLoggedIn()
-
login
public void login(char[] password, java.lang.String... loginParams) throws WebSiteException
Login.- Parameters:
password
- the passwordloginParams
- muss Login_URL enthalten- Throws:
WebSiteException
- the web site exception- See Also:
WebSite.login(char[], java.lang.String[])
-
logoff
public void logoff() throws WebSiteException
Logout- Throws:
WebSiteException
- the web site exception- See Also:
WebSite.logoff()
-
getStartdate
protected java.util.Calendar getStartdate()
Gets the startdate.- Specified by:
getStartdate
in classAbstractWebSite<org.openqa.selenium.WebDriver,SantanderWebAccountInformation,SantanderBankMessages>
- Returns:
- the startdate
- See Also:
AbstractWebSite.getStartdate()
-
isSupporting
protected boolean isSupporting(de.willuhn.jameica.hbci.rmi.KontoType type)
Üperfüpt, ob die WebSeiteninstance den Kontotypen unterstützt.- Parameters:
type
- der Kontoyp- Returns:
- true, wenn der Kontotyp unterstützt wird, false sonst.
-
-