Mass Edit Accounts
setTimeout 45000
open index.php
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //html/body/section/nav/div[1]/ul/li[3]/a/span
waitForText //html/body/section/div[1]/div[2]/div[1]/form/div[5]/a[4] Items I Own
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr[1]/th[1]/label/input off
click //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr[1]/th[1]/label/input
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr[1]/th[1]/label/input on
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input on
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input on
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[1]/label/input on
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[4]/td[1]/label/input on
click //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr[1]/th[1]/label/input
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr[1]/th[1]/label/input off
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input off
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input off
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[1]/label/input off
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[4]/td[1]/label/input off
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input off
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input on
clickAndWait //html/body/section/div[1]/div[1]/div/nav/div[2]/ul/li[2]/a
waitForText //html/body/section/div[1]/div/h1/span/span Mass Update: Accounts
clickAndWait //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
clickAndWait //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[1]/td[1]/div[2] Owner cannot be blank.
sendKeys //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td[1]/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[1]/ul/li/a Sam Smith (sam)
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td[1]/ul/li/a
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[2]/td[1]/div/select Automotive
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/td[1]/div/select Vendor
type //html/body/section/div[1]/div/div/div/form/table/tbody/tr[4]/td[1]/input 300
clickAndWait //html/body/section/div[1]/div/div/div/form/div/div/a/span[3]
waitForTextPresent records updated successfully.
clickAndWait //html/body/section/div[1]/div/div/div[2]/a/span
waitForText //html/body/section/div[1]/div[2]/div[1]/form/div[5]/a[4] Items I Own
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[5]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[5]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[5]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[4]/td[5]/a Sam Smith
waitForTextNotPresent Prospect
waitForTextNotPresent Customer
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input on
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input
verifyValue //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input on
clickAndWait //html/body/section/div[1]/div[1]/div/nav/div[2]/ul/li[1]/a
waitForText //html/body/section/div[1]/div/h1/span/span Mass Update: Accounts
waitForText //html/body/section/div[1]/div/div/div/form/span 2 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/table/tbody/tr[1]/th[1]/label/input
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/th[1]/label/input
sendKeys //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td[1]/div/input Super User
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td[1]/ul/li/a Super User (super)
click //html/body/section/div[1]/div/div/div/form/table/tbody/tr[1]/td[1]/ul/li/a
select //html/body/section/div[1]/div/div/div/form/table/tbody/tr[3]/td[1]/div/select Customer
clickAndWait //html/body/section/div[1]/div/div/div/form/div/div/a/span[3]
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[5]/a Super User
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[5]/a Super User
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[5]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[4]/td[5]/a Sam Smith
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[4] Customer
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[4] Customer
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[3]/td[4] Vendor
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[4]/td[4] Vendor
waitForTextNotPresent Prospect
click //html/body/section/div[1]/div[1]/div/nav/div[2]/ul/li[1]/a
assertAlert At least 1 record must be selected