<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
// fill in Profiles
$this->waitForElementPresent('custom_pre_id');
- $this->select('custom_pre_id', 'value=1');
+ $this->select('css=tr.crm-contribution-contributionpage-custom-form-block-custom_pre_id span.crm-profile-selector-select select', 'value=1');
// save
$this->click('_qf_Custom_upload_done');
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
$this->type("email-5", $email);
+ $this->select("state_province-1", "value=1001");
//Credit Card Info
$this->select("credit_card_type", "value=Visa");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//View Membership Record
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
$this->type("email-5", $email);
+ $this->select("state_province-1", "value=1001");
//Credit Card Info
$this->select("credit_card_type", "value=Visa");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//View Membership Record
// fill in Profiles
$this->waitForElementPresent('custom_pre_id');
- $this->select('custom_pre_id', 'value=1');
+ $this->select('css=tr.crm-contribution-contributionpage-custom-form-block-custom_pre_id span.crm-profile-selector-select select', 'value=1');
// save
$this->click('_qf_Custom_upload_done');
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
+ $this->select("state_province-1", "value=1001");
//Credit Card Info
$this->select("credit_card_type", "value=Visa");
$this->select("credit_card_type", "label=Visa");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$membershipCreatedId = $this->urlArg('id');
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$membershipRenewedId = $this->urlArg('id');
$membershipTypeTitle = "Membership Type $title";
$this->type('name', "Membership Type $title");
- $this->type('member_of_contact', $title);
- $this->click('member_of_contact');
- $this->waitForElementPresent("css=div.ac_results-inner li");
- $this->click("css=div.ac_results-inner li");
+ $this->select2('member_of_contact_id', $title);
$this->type('minimum_fee', '100');
$this->select( 'financial_type_id', 'value=2' );
$this->type('duration_interval', 1);
$this->select('duration_unit', 'label=year');
- $this->select('period_type', 'label=rolling');
+ $this->select('period_type', 'value=rolling');
$this->removeSelection('relationship_type_id', 'label=- select -');
$this->addSelection('relationship_type_id', 'label=Employer of');
$this->type('first_name', $firstName);
$this->type('last_name', $lastName);
+ $this->select("state_province-1", "value=1001");
//Credit Card Info
$this->select("credit_card_type", "value=Visa");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$organisationName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//View Membership Record
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName, $firstName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//View Membership Record
$this->type('first_name', $firstName);
$this->type('last_name', $lastName);
+ $this->select("state_province-1", "value=1001");
//Credit Card Info
$this->select("credit_card_type", "value=Visa");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$organisationName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//View Membership Record
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName, $firstName");
- $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
- $this->click('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
+ $this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//View Membership Record