<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost/" />
<title>CreateAccount</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Create Account</td></tr>
</thead>
<tbody>
<tr>
	<td>setTimeout</td>
	<td>45000</td>
	<td></td>
</tr>
<tr>
	<td>storeGlobal</td>
	<td>javascript{Math.floor(Math.random()*11000)}</td>
	<td>randomSuffix</td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/accounts/default/create</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Create Account</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>Account_name</td>
	<td>my accountc ${randomSuffix}</td>
</tr>
<tr>
	<td>click</td>
	<td>Account_owner_SelectLink</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td>Sam Smith</td>
</tr>
<tr>
	<td>keyUp</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td>\10</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForText</td>
	<td>//div[@id='UsersModalListView']/div/table/tbody/tr/td/a</td>
	<td>Sam Smith</td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sam Smith</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForValue</td>
	<td>Account_owner_name</td>
	<td>Sam Smith</td>
</tr>
<tr>
	<td>assertNotValue</td>
	<td>Account_owner_id</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>Account_employees</td>
	<td>5</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_officeFax</td>
	<td>123555</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_officePhone</td>
	<td>456777</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_annualRevenue</td>
	<td>500</td>
</tr>
<tr>
	<td>select</td>
	<td>Account_industry_value</td>
	<td>label=Financial Services</td>
</tr>
<tr>
	<td>select</td>
	<td>Account_type_value</td>
	<td>label=Vendor</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_website</td>
	<td>http://www.testingcompany.com</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_billingAddress_street1</td>
	<td>123 ABC Street</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_billingAddress_street2</td>
	<td>suite 100</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_billingAddress_city</td>
	<td>Chicago</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_billingAddress_state</td>
	<td>IL</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_billingAddress_postalCode</td>
	<td>60611</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_billingAddress_country</td>
	<td>USA</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_shippingAddress_street1</td>
	<td>456 Main Street</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_shippingAddress_street2</td>
	<td>Suite 200</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_shippingAddress_city</td>
	<td>New York</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_shippingAddress_state</td>
	<td>NY</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_shippingAddress_postalCode</td>
	<td>12133</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_shippingAddress_country</td>
	<td>USA</td>
</tr>
<tr>
	<td>type</td>
	<td>Account_description</td>
	<td>This is a test account</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>save</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>my accountc ${randomSuffix}</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>link=Edit</td>
	<td>Edit</td>
</tr>
<tr>
  <td>clickAndWait</td>
  <td>//li[@id='EditLinkActionElement']/a</td>
  <td></td>
</tr>
<tr>
    <td>waitForPageToLoad</td>
    <td></td>
    <td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<!--tr>
  <td>waitForTextPresent</td>
  <td>Create Contact</td>
  <td></td>
</tr-->
<tr>
	<td>assertValue</td>
	<td>Account_billingAddress_street1</td>
	<td>123 ABC Street</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Account_billingAddress_street2</td>
	<td>suite 100</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Account_billingAddress_city</td>
	<td>Chicago</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Account_billingAddress_state</td>
	<td>IL</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Account_billingAddress_postalCode</td>
	<td>60611</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Account_billingAddress_country</td>
	<td>USA</td>
</tr>
<!-- Create contacts via shortcut menu -->
<tr>
	<td>setSpeed</td>
	<td>3000</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/home/default</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//ul[@id='ShortcutsMenu']/li/ul/li[2]/a/span</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>Contact_account_SelectLink</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>AccountsSearchForm_anyMixedAttributes</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>AccountsSearchForm_anyMixedAttributes</td>
	<td>my accountc ${randomSuffix}</td>
</tr>
<tr>
	<td>keyUp</td>
	<td>AccountsSearchForm_anyMixedAttributes</td>
	<td>\10</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForText</td>
	<td>//div[@id='list-viewmodal']/table/tbody/tr[1]/td/a</td>
	<td>my accountc ${randomSuffix}</td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='list-viewmodal']/table/tbody/tr[1]/td/a</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForValue</td>
	<td>Contact_account_name</td>
	<td>my accountc ${randomSuffix}</td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>0</td>
	<td></td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Contact_primaryAddress_street1</td>
	<td>123 ABC Street</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Contact_primaryAddress_street2</td>
	<td>suite 100</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Contact_primaryAddress_city</td>
	<td>Chicago</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Contact_primaryAddress_state</td>
	<td>IL</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Contact_primaryAddress_postalCode</td>
	<td>60611</td>
</tr>
<tr>
	<td>assertValue</td>
	<td>Contact_primaryAddress_country</td>
	<td>USA</td>
</tr>
</tbody>
</table>
</body>
</html>