Friends,
I am unable to capture the bitmap image. I am using the following code.
Please correct me.

CPE_RAT_TYP_ID=DataTable.Value("RATE_TYPE_ID","CPE RATE IMPORT")
TEXT_FILE_NAME=DataTable.Value("TEXT_FILE","CPE RATE IMPORT")
EMAIL_ID=DataTable.Value("EMAIL","CPE RATE IMPORT")
Browser("BrwRates - Result").Page("PgeRates -
Result").Link("LnkImport").Click
Browser("BrwRates - Import").Page("PgeRates -
Import").WebList("Lstcpe_rat_typ_id").Select CPE_RAT_TYP_ID
Browser("BrwRates - Import").Page("PgeRates -
Import").WebFile("Txtthefile").Set TEXT_FILE_NAME
Browser("BrwRates - Import").Page("PgeRates -
Import").WebEdit("Txtemail").Set EMAIL_ID
Browser("BrwRates - Import").Page("PgeRates -
Import").WebButton("BtnIMPORT").Click
Browser("BrwRates - Import").Dialog("DlgMicrosoft Internet
Explorer").WinButton("WbOK").Click
'To view the Impot file status
Browser("BrwImport Result").Page("PgeImport Result").Link("LnkHERE").Click
wait 10
If Browser("BrwCPE PURCHASE RATES IMPORT").Page("PgeCPE PURCHASE RATES
IMPORT").Link("Errors as XML").Exist Then
Browser("BrwCPE PURCHASE RATES IMPORT").Page("PgeCPE PURCHASE RATES
IMPORT").CaptureBitmap "C:\Documents    and
Settings\anilkumart\Desktop\FailedStep1.bmp"
Browser("BrwCPE PURCHASE RATES IMPORT").Page("PgeCPE PURCHASE RATES
IMPORT").WebButton("BtnCLOSE").Click
End If


-- 
Thanks and Regards

Anilkumar Tambakad
9282142160

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to