$this->open($this->sboxPath);\r
\r
// Log in using webtestLogin() method\r
- $this->webtestLogin(TRUE);\r
- $this->open($this->sboxPath . 'civicrm/financial/batch?reset=1&action=add');\r
- $this->waitForPageToLoad($this->getTimeoutMsec());\r
- $this->waitForElementPresent('_qf_FinancialBatch_next-botttom');\r
+ $this->webtestLogin('admin');\r
+ $this->openCiviPage("financial/batch", "reset=1&action=add", '_qf_FinancialBatch_next-botttom');\r
$setTitle = 'Batch ' . substr(sha1(rand()), 0, 7) . date('Y-m-d');\r
$setDescription = 'Test Batch Creation';\r
$setPaymentInstrument = 'Credit Card';\r