Skip to content

Commit 52e5a1f

Browse files
committed
mint: Fixed totals
1 parent 2cd5154 commit 52e5a1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

processors/mint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ casper.then(function login() {
7373
//casper.thenEvaluate(javascriptOnLoad);
7474
//casper.waitFor(javascriptLoadedCheck, undefined, undefined, 30000);
7575
casper.waitForSelector('#product-view-root > div.productPageContent > div.pageContents > div.overviewPage > table > tbody > tr:nth-child(3) > td:nth-child(1) > div#overview-left-column', undefined, undefined, 15000);
76+
casper.waitFor(function checkForTotals() {
77+
return this.evaluate(function _checkForTotals() {
78+
return document.querySelector('div#module-accounts > div.module-content ul.totals > li.asset-total > span.balance').innerHTML.replace(/^\s*|\s*$/g, '') != ''
79+
});
80+
}, undefined, undefined, 15000);
7681

7782
var account_data;
7883
var current_timestamp;

0 commit comments

Comments
 (0)