Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel
#7
Not Solved
Hi Tushar,

I hope this will help you.

Code:
Dim sFileLocation

On Error Resume Next
SystemUtil.CloseProcessByName "Excel.Exe"

sFileLocation = "C:\Input.xls"
sWorksheet = "InputData"


Set xlObj = CreateObject("Excel.Application")
xlObj.Visible = True

Set xlWorkBookObj = xlObj.Workbooks.Open(sFileLocation)

Set xlWorkSheetObj = xlWorkBookObj.Worksheets(sWorksheet)

For  i  =2 To 3
    
        sRollNo = xlWorkSheetObj.Cells(i,1)
        Browser("ConfirmationHome").Page("ConfirmationHome").WebEdit("trfrBpId").Set sRollNo
        Browser("ConfirmationHome").Page("ConfirmationHome").WebButton("Search").Click

        If Browser("ConfirmationHome").Page("ConfirmationHome").Link("DRN").Exist Then
            xlWorkSheetObj.Cells(i,2).Value = "Pass"
        Else
          xlWorkSheetObj.Cells(i,2).Value = "Fail"
        End If
    
Next
Reply


Messages In This Thread
Excel - by lit_73 - 05-19-2009, 02:21 PM
RE: Excel - by Ankur - 05-19-2009, 03:06 PM
RE: Excel - by manojith1984 - 05-20-2009, 11:11 AM
RE: Excel - by lit_73 - 06-22-2009, 05:23 PM
RE: Excel - by lit_73 - 06-23-2009, 06:03 PM
RE: Excel - by manojith1984 - 06-24-2009, 02:16 PM
RE: Excel - by savita.kale - 08-04-2009, 06:08 PM
RE: Excel - by linhke - 12-10-2009, 07:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)