| Create Leads | ||
| setTimeout | 45000 | |
| storeGlobal | javascript{Math.floor(Math.random()*11000)} | randomSuffix |
| open | index.php/accounts/default/create | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | Create Account | |
| type | Account_name | my account ${randomSuffix} |
| clickAndWait | save | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | my account ${randomSuffix} | |
| open | index.php/leads/default | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| clickAndWait | //div[@id='SecuredActionBarForLeadsSearchAndListView']/div[1]/nav/div[1]/a/span | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | Create Lead | |
| type | Contact_firstName | Silly |
| type | Contact_lastName | Sally ${randomSuffix} |
| select | Contact_state_id | label=In Progress |
| type | Contact_jobTitle | President |
| select | Contact_source_value | label=Inbound Call |
| type | Contact_companyName | Rabbit Technology |
| type | Contact_officePhone | 456-777-6655 |
| type | Contact_mobilePhone | 888999888 |
| click | Contact_owner_SelectLink | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForElementPresent | UsersSearchForm_anyMixedAttributes | |
| type | UsersSearchForm_anyMixedAttributes | Sam Smith |
| keyUp | UsersSearchForm_anyMixedAttributes | \10 |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForText | //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a | Sam Smith |
| assertElementPresent | link=Sam Smith | |
| click | link=Sam Smith | |
| waitForValue | Contact_owner_name | Sam Smith |
| assertNotValue | Contact_owner_id | |
| type | Contact_primaryAddress_street1 | 123 Main Street |
| type | Contact_primaryAddress_street2 | Suite 500 |
| type | Contact_primaryAddress_city | Chicago |
| type | Contact_primaryAddress_state | IL |
| type | Contact_primaryAddress_postalCode | 60614 |
| type | Contact_primaryAddress_country | USA |
| type | Contact_secondaryAddress_street1 | 456 Bee Street |
| type | Contact_secondaryAddress_street2 | Suite 400 |
| type | Contact_secondaryAddress_city | Gary |
| type | Contact_secondaryAddress_state | Indiana |
| type | Contact_secondaryAddress_postalCode | 67898 |
| type | Contact_secondaryAddress_country | USA |
| select | Contact_industry_value | label=Financial Services |
| type | Contact_website | http://www.rabbit.com |
| type | Contact_description | test |
| select | Contact_title_value | label=Mrs. |
| type | Contact_officeFax | 5679076543 |
| type | Contact_primaryEmail_emailAddress | sally@rabbit.com |
| clickAndWait | save | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForText | //div[@id='LeadDetailsAndRelationsView']/div[2]/div/ul[1]/li[1]/div[1]/h3 | exact:Details |
| assertTextPresent | Mrs. Silly Sally ${randomSuffix} | |
| click | //div[@id='LeadDetailsAndRelationsView']/div[2]/div/ul[1]/li[3]/div[1]/div/div/div/ul/li/ul/li/a/span | |
| assertTextPresent | Compose Email | |
| click | css=span.ui-icon.ui-icon-closethick | |
| assertElementPresent | link=123 Main Street Suite 500 Chicago IL, 60614 USA | |
| click | link=123 Main Street Suite 500 Chicago IL, 60614 USA | |
| click | css=span.ui-icon.ui-icon-closethick | |
| assertVisible | //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-office-phone'] | |
| assertVisible | //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-mobile-phone'] | |
| assertVisible | //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-email'] | |
| assertVisible | //div[@id='businessCardView']/img[@class='gravatar'] | |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[1]/td | Mrs. Silly Sally ${randomSuffix} |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[2]/td | In Progress |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[4]/td | Rabbit Technology |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[8]/td | 888999888 |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[9]/td | 5679076543 |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[13]/td | 456 Bee Street Suite 400 Gary Indiana, 67898 USA |
| assertNotVisible | link=exact:http://www.rabbit.com | exact:http://www.rabbit.com |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[14]/td | Financial Services |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[12]/td | 123 Main Street Suite 500 Chicago IL, 60614 USA |
| assertNotVisible | link=sally@rabbit.com | sally@rabbit.com |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[7]/td | Inbound Call |
| assertNotVisible | //div[@id='zurmoView']/div/table/tbody/tr[16]/td | test |
| click | //div[@id='LeadDetailsPortletView']/a | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[1]/td | Mrs. Silly Sally ${randomSuffix} |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[2]/td | In Progress |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[4]/td | Rabbit Technology |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[8]/td | 888999888 |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[9]/td | 5679076543 |
| compareText | //div[@id='zurmoView']/div/table/tbody/tr[13]/td | 456 Bee Street Suite 400 Gary Indiana, 67898 USA |
| assertElementPresent | link=exact:http://www.rabbit.com | |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[14]/td | Financial Services |
| compareText | //div[@id='zurmoView']/div/table/tbody/tr[12]/td | 123 Main Street Suite 500 Chicago IL, 60614 USA |
| assertElementPresent | link=sally@rabbit.com | |
| assertElementPresent | link=Sam Smith | |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[7]/td | Inbound Call |
| assertText | //div[@id='zurmoView']/div/table/tbody/tr[16]/td | test |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[1]/td | Mrs. Silly Sally ${randomSuffix} |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[2]/td | In Progress |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[4]/td | Rabbit Technology |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[8]/td | 888999888 |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[9]/td | 5679076543 |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[13]/td | 456 Bee Street Suite 400 Gary Indiana, 67898 USA |
| assertVisible | link=exact:http://www.rabbit.com | exact:http://www.rabbit.com |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[14]/td | Financial Services |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[12]/td | 123 Main Street Suite 500 Chicago IL, 60614 USA |
| assertVisible | link=sally@rabbit.com | sally@rabbit.com |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[7]/td | Inbound Call |
| assertVisible | //div[@id='zurmoView']/div/table/tbody/tr[16]/td | test |