From f48a56fc08a48493a8b0d683b93bf2477a0922cc Mon Sep 17 00:00:00 2001 From: Maggie Date: Tue, 16 Sep 2014 15:34:24 -0400 Subject: [PATCH] Changed out click and waitfortext due to processor line appearing in irregular places --- tests/phpunit/CiviTest/CiviSeleniumTestCase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php index bcc4ad2ffc..e517f4bb60 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php @@ -739,7 +739,8 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase { } // Is new processor created? - $this->clickLink('_qf_PaymentProcessor_next-bottom', "xpath=//div[@class='content']//table[@class='selector row-highlight']//tbody/tr[last()]/td[2][text()='AuthNet']"); + $this->click('_qf_PaymentProcessor_next-bottom'); + $this->waitForTextPresent($processorName); $this->assertTrue($this->isTextPresent($processorName), 'Processor name not found in selector after adding payment processor (webTestAddPaymentProcessor).'); $paymentProcessorId = explode('&id=', $this->getAttribute("xpath=//table[@class='selector row-highlight']//tbody//tr/td[text()='{$processorName}']/../td[7]/span/a[1]@href")); -- 2.25.1