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 ClassesModifier and TypeClassDescriptionstatic enum
An Enum for the existing document types in the document box -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Class name of the loading overlay divFields inherited from class de.frankmuenster.mahoe.web.AbstractWebSite
accountInfo, NON_BREAK_SPACE, TABLE_TAG, webClient
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SantanderWebSite
(de.willuhn.jameica.hbci.rmi.Konto konto, de.willuhn.jameica.hbci.rmi.KontoType type, String userName) Erstellt ein neues Webseiten-Objekt zur Kontaktaufnahme mit der BCEE. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createSepaTransfer
(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung aUeberweisung) Creates the sepa transfer.Gets the account information.static byte[]
getAccountSeleniumSheetAsByteArray
(org.apache.commons.lang3.tuple.Pair<Date, org.openqa.selenium.WebElement> document, org.openqa.selenium.WebDriver webClient) Returns the account sheet as byte arraygetAccountSheets
(SantanderWebAccountInformation accountInfo) Returns a list of new accounts sheets to save.List<de.willuhn.jameica.hbci.rmi.Umsatz>
Gets the booked transactions.Returns the clearing transactionstatic SantanderWebSite
getInstance
(de.willuhn.jameica.hbci.rmi.Konto konto) Liefert die Instance der WebSeite.List<de.willuhn.jameica.hbci.rmi.Umsatz>
Gets the pre booked transactions.protected Calendar
Gets the startdate.boolean
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.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, getAccountSheetAsByteArray, getDownloadsDirectory, getWebClient, saveCookies, shutDown
Methods inherited from class de.frankmuenster.mahoe.web.AbstractWebSite
getGenericClassParameter, getMessages, setAccountBasicInfo
-
Field Details
-
CLASS_NAME_FOR_LOADING_OVERLAY
Class name of the loading overlay div- See Also:
-
-
Constructor Details
-
SantanderWebSite
protected SantanderWebSite(de.willuhn.jameica.hbci.rmi.Konto konto, de.willuhn.jameica.hbci.rmi.KontoType type, 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 Details
-
getAccountSeleniumSheetAsByteArray
public static byte[] getAccountSeleniumSheetAsByteArray(org.apache.commons.lang3.tuple.Pair<Date, org.openqa.selenium.WebElement> document, org.openqa.selenium.WebDriver webClient) throws WebSiteExceptionReturns 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:
-
getAccountInformation
public SantanderWebAccountInformation getAccountInformation() throws WebSiteException, de.willuhn.util.ApplicationExceptionGets the account information.- Returns:
- the account information
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
-
getAccountSheets
public 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:
-
getBookedTransactions
public List<de.willuhn.jameica.hbci.rmi.Umsatz> getBookedTransactions() throws WebSiteException, de.willuhn.util.ApplicationExceptionGets the booked transactions.- Returns:
- the booked transactions
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
-
getClearingEntry
Returns the clearing transaction- Returns:
- the clearing transaction
-
getPreBookedTransactions
public List<de.willuhn.jameica.hbci.rmi.Umsatz> getPreBookedTransactions() throws WebSiteException, de.willuhn.util.ApplicationExceptionGets the pre booked transactions.- Returns:
- the pre booked transactions
- Throws:
WebSiteException
- the web site exceptionde.willuhn.util.ApplicationException
- the application exception- See Also:
-
isStillLoggedIn
Checks if is still logged in.- Returns:
- true, if is still logged in
- Throws:
WebSiteException
- the web site exception- See Also:
-
login
Login.- Parameters:
password
- the passwordloginParams
- muss Login_URL enthalten- Throws:
WebSiteException
- the web site exception- See Also:
-
logoff
Logout- Throws:
WebSiteException
- the web site exception- See Also:
-
getStartdate
Gets the startdate.- Specified by:
getStartdate
in classAbstractWebSite<org.openqa.selenium.WebDriver,
SantanderWebAccountInformation, SantanderBankMessages> - Returns:
- the startdate
- See Also:
-
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.
-