Hi Activate,
I had some task of taking bitmaps for the objects but when i say the command to capture bitmap (browser("title:=Find a Flight: Mercury Tours:").page("title:=Find a Flight: Mercury Tours:").webtable("name:=Home").CaptureBitmap "C:\123.png",1 ) then at that time my focus was not on the Page (it was on QtP). So instead of taking the bitmap for webtable it was capturing somrthing else
Now I tried ur which worked fine for me
Thanks
Ramesh Tahiliani
I had some task of taking bitmaps for the objects but when i say the command to capture bitmap (browser("title:=Find a Flight: Mercury Tours:").page("title:=Find a Flight: Mercury Tours:").webtable("name:=Home").CaptureBitmap "C:\123.png",1 ) then at that time my focus was not on the Page (it was on QtP). So instead of taking the bitmap for webtable it was capturing somrthing else
Now I tried ur which worked fine for me
Code:
hwnd_FindFlight = browser("title:=Find a Flight: Mercury Tours:").page("title:=Find a Flight: Mercury Tours:").GetROProperty("hwnd")
Window("hwnd:="+cstr(hwnd_FindFlight)).Activate
browser("title:=Find a Flight: Mercury Tours:").page("title:=Find a Flight: Mercury Tours:").webtable("name:=Home").CaptureBitmap "C:\123.png",1Thanks
Ramesh Tahiliani

