Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I send variable value to html property for descriptive programming in QTP
#11
Not Solved
np your are most wc
Thanks,
SUpputuri
Reply
#12
Not Solved
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
Reply
#13
Not Solved
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
Thanks,
SUpputuri
Reply
#14
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP Not Recognising Delphi Name Property richardeth 0 2,010 01-30-2014, 09:57 PM
Last Post: richardeth
  capture screenshot using html code and view in QTP Test results Bhuvan 3 6,981 07-19-2013, 02:38 PM
Last Post: Bhuvan
  Not able to send spacebar with End Key to TE nbansal 1 3,385 02-08-2013, 11:31 PM
Last Post: coolguy
  fucntion to send mail in outlook works fine in qtpcode but does not work in .vbs Rashmi 2 3,881 06-13-2011, 09:55 PM
Last Post: byzoor
  Send mails through QTP tester_rahul 2 2,953 04-29-2010, 01:50 PM
Last Post: tester_rahul

Forum Jump:


Users browsing this thread: 2 Guest(s)