Mass Update Opportunities
setTimeout 45000
setSpeed 3000
open index.php
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/nav/div[1]/ul/li[6]/a/span Opportunities
clickAndWait //html/body/section/nav/div[1]/ul/li[6]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div/form/div[5]/a[4] Items I Own
waitForElementPresent //html/body/section/div[1]/div[1]/div/nav[1]/div[2]/ul/li[1]/a
click //html/body/section/div[1]/div[1]/div/nav[1]/div[2]/ul/li[1]/a
assertAlert At least 1 record must be selected
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[1]/label/input
waitForElementPresent //html/body/section/div[1]/div[1]/div/nav[1]/div[2]/ul/li[1]/a
click //html/body/section/div[1]/div[1]/div/nav[1]/div[2]/ul/li[1]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/h1/span/span Mass Update: Opportunities
waitForText //html/body/section/div[1]/div/div/div/form/span 3 records selected for updating. Please tick the boxes next to the fields you wish to update and then select the value you wish to be used.
click //html/body/section/div[1]/div/div/div/form/div/div/a/span[3]
waitForTextPresent You must select at least one field to modify.
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[2]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[4]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/div/div/a/span[3]
waitForText //html/body/section/div[1]/div/div/div/form/table/tbody/tr[2]/td/div[2] Stage cannot be blank.
waitForText //html/body/section/div[1]/div/div/div/form/table/tbody/tr[4]/td/div[2] Close Date cannot be blank.
sendKeys //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/div/input Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/ul/li[1]/a Sam Smith (sam)
verifyValue //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/div/input Sam Smith
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/ul/li[1]/a
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[2]/td/div/select Negotiating
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/td/div/select Word of Mouth
type //html/body/section/div[1]/div/div/div/form/table/tbody/tr[4]/td/div/input ${month}/${date}/17
click //html/body/section/div[1]/div/div/div/form/div/div/a/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div/form/div[5]/a[4] Items I Own
click //html/body/section/div[1]/div[2]/div[1]/form/div[5]/a[2]
waitForElementPresent //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select
addSelection //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select label=Stage
addSelection //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select label=Source
addSelection //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select label=Close Date
click //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[2]/input[1]
waitForElementPresent //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[3]/select/option[7]
click //html/body/section/div[1]/div[2]/div/form/div[4]/div[2]/div/a[2]/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[7]/a Close Date
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[8]/a Source
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[9]/a Stage
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[6]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[6]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[6]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[7] ${month}/${date}/17
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[7] ${month}/${date}/17
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[7] ${month}/${date}/17
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[8] Word of Mouth
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[8] Word of Mouth
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[8] Word of Mouth
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[9] Negotiating
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[9] Negotiating
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[9] Negotiating
click //html/body/section/div[1]/div[1]/div/nav[1]/div[2]/ul/li[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/h1/span/span Mass Update: Opportunities
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[2]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[4]/th[1]/label/input
sendKeys //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/div/input Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/ul/li[1]/a Sam Smith (sam)
verifyValue //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/div/input Sam Smith
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td/ul/li[1]/a
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[2]/td/div/select Negotiating
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/td/div/select Word of Mouth
type //html/body/section/div[1]/div/div/div/form/table/tbody/tr[4]/td/div/input ${month}/${date}/17
click //html/body/section/div[1]/div/div/div/form/div/div/a/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent //html/body/section/div[1]/div/div/div[2]/a/span
click //html/body/section/div[1]/div/div/div[2]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div/form/div[5]/a[4] Items I Own
click //html/body/section/div[1]/div[2]/div[1]/form/div[5]/a[2]
waitForElementPresent //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select
addSelection //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select label=Stage
addSelection //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select label=Source
addSelection //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[1]/select label=Close Date
click //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[2]/input[1]
waitForElementPresent //html/body/section/div[1]/div[2]/div/form/div[4]/div[1]/table/tbody/tr/td/div/div[3]/select/option[7]
click //html/body/section/div[1]/div[2]/div/form/div[4]/div[2]/div/a[2]/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[7]/a Close Date
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[8]/a Source
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[9]/a Stage
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[8]/td[6]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[9]/td[6]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[10]/td[6]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[8]/td[7] ${month}/${date}/17
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[9]/td[7] ${month}/${date}/17
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[10]/td[7] ${month}/${date}/17
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[8]/td[8] Word of Mouth
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[9]/td[8] Word of Mouth
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[10]/td[8] Word of Mouth
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[9] Negotiating
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[9] Negotiating
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[9] Negotiating
setSpeed 0