Support coming operations
This commit is contained in:
parent
9efc31ed77
commit
732417b94a
3 changed files with 39 additions and 5 deletions
|
|
@ -131,10 +131,7 @@ class AccountsList(LoggedPage, HTMLPage):
|
|||
obj_coming = NotAvailable
|
||||
obj__jid = Attr('//input[@name="javax.faces.ViewState"]', 'value')
|
||||
|
||||
@method
|
||||
class get_transactions(ListElement):
|
||||
item_xpath = '//div[@class="temporaryTransactionList"]//table'
|
||||
|
||||
class generic_transactions(ListElement):
|
||||
class item(ItemElement):
|
||||
klass = Transaction
|
||||
|
||||
|
|
@ -152,6 +149,14 @@ class AccountsList(LoggedPage, HTMLPage):
|
|||
return False
|
||||
return True
|
||||
|
||||
@method
|
||||
class get_coming(generic_transactions):
|
||||
item_xpath = '//div[@class="transactions cc future"]//table'
|
||||
|
||||
@method
|
||||
class get_transactions(generic_transactions):
|
||||
item_xpath = '//div[@class="temporaryTransactionList"]//table'
|
||||
|
||||
def get_history_jid(self):
|
||||
span = self.doc.xpath('//span[@id="index:panelASV"]')
|
||||
if len(span) > 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue