Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 2

Dynamic Statement Execution

Execute "Set oObj = Browser" & dpBrowser & dpObject .Exists


("Title:=Google") ("outerHTML:=.*HP.*")
Execute "IF oObj.Exist (0).WebElement
THEN oObj" & dpMethod & dpArg
dpBrowser sClass dpObject
("HTMLTag:=A, Name:=Home")
s.Click
Method dpArg
("Title:=HP") .Link

("Name:=userName") .Set
("Title:=Mercury Tours") .WebEdit

("Title:=Micro Focus") ("Name:=salaryRange") .Select


.WebList "Steve"

("outerHTML:=.*HP.*") .Exists
("Title:=HP") .WebElement "$60,000"

Set oObj = Browser("Title:=Mercury Tours").WebEdit("Name:=userName")


("HTMLTag:=A", .Highlight
("Title:=Google")
.Link
IF oObj.Exist (0) THEN oObj.Set "Steve" "Name:=Home")

06/04/23 Paul M. Grossman 2008 1


Dynamic Statement Execution

Execute "Set oObj = Browser" & dpBrowser & dpObject .Exists


("Title:=Google") ("outerHTML:=.*HP.*")
.WebElement
Execute "IF oObj.Exist (0) THEN oObj" & dpMethod & dpArg
dpBrowser sClass dpObject sMethod dpArg
("HTMLTag:=A, Name:=Home") .Click
("Title:=HP") .Link

("Name:=userName") .Set
("Title:=Mercury Tours") .WebEdit

("Title:=Micro Focus") ("Name:=salaryRange") .Select


.WebList "Steve"

("outerHTML:=.*HP.*") .Exists
("Title:=HP") .WebElement "$60,000"

Set oObj = Browser("Title:=Mercury Tours").WebEdit("Name:=userName")


("HTMLTag:=A", .Highlight
("Title:=Google")
.Link
IF oObj.Exist (0) THEN oObj.Set "Steve" "Name:=Home")

06/04/23 Paul M. Grossman 2008 2

You might also like