Micro Focus QTP (UFT) Forums
How can I send variable value to html property for descriptive programming in QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How can I send variable value to html property for descriptive programming in QTP (/Thread-How-can-I-send-variable-value-to-html-property-for-descriptive-programming-in-QTP)

Pages: 1 2


RE: How can I send variable value to html property for descriptive programming in QTP - supputuri - 07-24-2009

np your are most wc


RE: How can I send variable value to html property for descriptive programming in QTP - binny318 - 11-24-2012

Hi

i used the same code but only diff is that apart from giving value to variable as
Code:
name = "Login"
Browser("name:=name").Page("page:=p").webbutton("name:="&name).click

i am passing it as input from excel sheet as given

Code:
datatable.getsheet("Action").setcurrentrow(k)
edit = trim(DataTable("Rownoedit","Action"))

Browser("name:=CTT.*").Page("title:=CTT.*").Frame("html id:=fraMain").WebButton("html tag:= INPUT","html id:=" &edit).Click

I am getting the error webbutton does not recognize obj edit.. bla bla bla

Please advice on this.. TIA


RE: How can I send variable value to html property for descriptive programming in QTP - supputuri - 11-26-2012

hi binny,

please provide the correct properties for the button. Check what is the property value of html tag...

let me know if you still need some more info


RE: How can I send variable value to html property for descriptive programming in QTP - binny318 - 11-26-2012

Hello SUpputuri

here is the prop of webButton
Code:
WebButton("html tag:= INPUT","html id:=dgData_clt2_btnEdit")

i want a variable to be in html id property so that it can be passed from excel.
Other properties of button:
class name - WebButton
html id- dgData_clt2_btnEdit
html tag - INPUT
name - Edit
type - Submit
value - Edit
visible- True