Thank you. I will check and revert back regarding this. On 7/23/09, Roman Zilber <[email protected]> wrote: > > There are extra spaces in the path > C:\Documents and Settings\anilkumart\Desktop\FailedStep1.bmp > > On Wed, Jul 22, 2009 at 1:54 PM, AnilKumar Tambakad < > [email protected]> wrote: > >> 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 >> >> >> >> > > > >
-- 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 -~----------~----~----~----~------~----~------~--~---
