03-05-2013, 07:49 AM
(This post was last modified: 03-05-2013, 07:50 AM by zakshah.12.)
Code:
Dim bro,url
bro = "iexplore"
url = "www.gmail.com"
systemutil.Run bro,url
For i = 1 To datatable.GetRowCount Step 1
Set desc=description.Create
desc("micclass").value="WebEdit"
desc("html id").value="Email"
Browser("title:=.*").Page("title:=.*").WebEdit(desc).Set datatable("user")
Set desc1=description.Create
desc1("micclass").value="WebEdit"
desc1("name").value="Passwd"
Browser("title:=.*").page("title:=.*").webEdit(desc1).Set datatable("pass")
Set desc2=description.Create
desc2("micclass").value="WebButton"
desc2("class").value="g-button g-button-submit"
Browser("title:=.*").page("title:=.*").webbutton(desc2).Click
If browser("title:=.*").page("title:=.*").webbutton(desc2).Exist(2) Then
Set desc3=description.Create
desc3("micclass").value="WebElement"
desc3("class").value="errormsg"
else
End If
datatable.SetNextRow
next
i am using dp and trying to create output check point using dp.
so that error msg can be record in the datatable?