Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CaptureBitmap - File name from Data Table
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
In using CaptureBitmap function

1. File names have to be taken from a DataTable value

Can any body help me out with syntax?
-------------------------------------------------------------------------
Code:
Browser("Google").Page("Google").CaptureBitmap("english.bmp")
Reporter.ReportEvent micDone,"lang name","lang desc","english.bmp"


Values in the Data Table as

English
french
German
polish
-----------------------------------------------------------------------




Thanks in Advance
Nagappan
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi,

Try the following:
Code:
Dim fileName
fileName = DataTable.GlobalSheet.GetParameter("FileName") & ".bmp"
Browser("Google").Page("Google").CaptureBitmap(fileName)
Reporter.ReportEvent micDone,"lang name","lang desc",fileName

Rename the column of DataTable as FileName in which your values are stored.
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Two questions,
1. Where would it store?
2. Why use variable fileName?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
Thanks a lot guys.
Nag
Reply
#5
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Basant,

You are right. We can use: CaptureBitmap(DataTable.GlobalSheet.GetParameter("FileName") & ".bmp")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,052 11-01-2019, 10:25 PM
Last Post: jayraocourts
Sad Save data from pdf file to a word doc Amar 0 2,404 12-12-2013, 12:29 PM
Last Post: Amar
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 2,608 11-13-2013, 10:24 PM
Last Post: sai rajesh
  DP is not returning the whole table data content soumen 6 4,734 10-02-2013, 12:05 PM
Last Post: vvcyril
  Data table overwrite the value wajahatawan561 2 4,250 06-25-2013, 03:24 PM
Last Post: ssvali

Forum Jump:


Users browsing this thread: 1 Guest(s)