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/create |
|
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 |
select |
Contact_title_value |
label=Mrs. |
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='LeadEditAndDetailsView']/div/h1 |
exact:Silly Sally ${randomSuffix} |
assertText |
//div[@id='LeadEditAndDetailsView']/div/div/table/tbody/tr[1]/td[1] |
Mrs. Silly Sally ${randomSuffix} |
open |
index.php/contacts/default/create |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Create Contact |
|
type |
Contact_firstName |
Jinny |
type |
Contact_lastName |
Jane ${randomSuffix} |
select |
Contact_title_value |
label=Mrs. |
select |
Contact_state_id |
label=Customer |
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Jinny Jane ${randomSuffix} |
|
verifyTextPresent |
Mrs. Jinny Jane ${randomSuffix} |
|
open |
index.php/opportunities/default/create |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Create Opportunity |
|
type |
Opportunity_name |
Test Opportunity ${randomSuffix} |
type |
Opportunity_amount_value |
500.34 |
click |
Opportunity_closeDate |
|
click |
//div[@id='ui-datepicker-div']/div/a[2]/span |
|
click |
//div[@id='ui-datepicker-div']/table/tbody/tr[2]/td[3]/a |
|
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Test Opportunity ${randomSuffix} |
|
verifyTextPresent |
Test Opportunity ${randomSuffix} |
|