setTimeout |
45000 |
|
open |
index.php/leads/default/create |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
type |
Contact_firstName |
Jhon |
type |
Contact_lastName |
Connor ${randomSuffix} |
select |
Contact_state_id |
label=In Progress |
select |
Contact_title_value |
label=Mr. |
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='LeadEditAndDetailsView']/div/h1 |
exact:Jhon Connor ${randomSuffix} |
assertText |
//div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[1]/td[1] |
Mr. Jhon Connor ${randomSuffix} |
clickAndWait |
link=Delete |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForConfirmation |
Are you sure you want to delete this lead? |
|
chooseOkOnNextConfirmation |
|
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
verifyTextPresent |
Create |
|
verifyTextPresent |
Advanced |
|
type |
LeadsSearchForm_anyMixedAttributes |
Jane ${randomSuffix} |
keyUp |
LeadsSearchForm_anyMixedAttributes |
\10 |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
No results found. |
|