how to print values into a field of a web page, from a data table in qtp?
3 posters
Re: how to print values into a field of a web page, from a data table in qtp?
May I Know the Type of Application so that I can proceed further to reply you as soon as possible
thomasdfg- Posts : 11
Join date : 2014-06-18
Age : 39
Location : Hyderabad
Re: how to print values into a field of a web page, from a data table in qtp?
thankyou. this answer helped me so much.
akhilaadp- Posts : 2
Join date : 2012-07-13
Re: how to print values into a field of a web page, from a data table in qtp?
Once you have the required data in the datatable.
You may use the following way to enter the values in a field, its not only for a particular field like gross pay, it is similar for all the fields (take it Edit, List, CheckBox etc, based on the method followed by your datatable input).
Dim strGrossPay
strGrossPay = DataTable.value("GrossPay", YourSheetName)
Browser("Browser").Page("Page").WebEdit("Field").set strGrossPay
or
without using the variable it would be this way:
Browser("Browser").Page("Page").WebEdit("Field").set DataTable.value("GrossPay", YourSheetName)
Let me know if you query is not clarified.
Thanks,
Gajre
You may use the following way to enter the values in a field, its not only for a particular field like gross pay, it is similar for all the fields (take it Edit, List, CheckBox etc, based on the method followed by your datatable input).
Dim strGrossPay
strGrossPay = DataTable.value("GrossPay", YourSheetName)
Browser("Browser").Page("Page").WebEdit("Field").set strGrossPay
or
without using the variable it would be this way:
Browser("Browser").Page("Page").WebEdit("Field").set DataTable.value("GrossPay", YourSheetName)
Let me know if you query is not clarified.
Thanks,
Gajre
how to print values into a field of a web page, from a data table in qtp?
we are trying to connect adp paycheck calculator and the data table in qtp. how do we send values from the data table to the gross pay field in the calculator application?
akhilaadp- Posts : 2
Join date : 2012-07-13
Similar topics
» how to extract a filename attached to a user defined field
» QTP recognizes or identifies Web Page as ActiveX object
» QTP recognizes or identifies Web Page as ActiveX object
Permissions in this forum:
You cannot reply to topics in this forum
Thu Jun 19, 2014 11:31 am by thomasdfg
» How to identify the object when it is dynamically changing behavior
Wed Jun 18, 2014 6:37 pm by thomasdfg
» Patches for QTP 10, 11, 11.5
Wed Jun 18, 2014 6:04 pm by thomasdfg
» Retrieving data from Txt file into datatable
Wed Jun 18, 2014 5:32 pm by thomasdfg
» VB Script to count number of links in a web page.
Wed Jun 18, 2014 4:51 pm by thomasdfg
» Customized HTML reports in QTP
Wed Jun 18, 2014 4:42 pm by thomasdfg
» how to print values into a field of a web page, from a data table in qtp?
Wed Jun 18, 2014 4:37 pm by thomasdfg
» How to delete cookies using QTP?
Wed Jun 18, 2014 4:30 pm by thomasdfg
» When UFT Does Not Identify an Object
Wed Jun 18, 2014 4:23 pm by thomasdfg