Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
object does not support this property or method
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
hi all

I am novice in QTP

i need to select a value from the database. i need to double click the value to populate it in the front end

so i used

Code:
browser(x).page(x).webelement("innertext"= &value).click

the particluar value is just selected

i need to double click it to populate it to the front end
so i tried


Code:
browser(x).page(x).webelement("innertext"= &value).Doubleclick
when i run the script i get an error

object does not support this property or method for this line.wat could be the problem

thanks
Aravind
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
try using fireevent(ondblclick)

Code:
browser(x).page(x).webelement("innertext"= &value).FireEvent "ondblclick"

Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
thanks a lot buddy. its working fine

i ve got another problem now

i ve got 2 records in my table with the same properties

so when i use the command
Code:
browser(x).page(x).webelement("innertext"= &value).FireEvent "ondblclick"

qtp is not able to identify the record properly since there are 2 identical records

Is there any possibility for selecting the 1 st record or the 2 nd one

thanx
aravind
Reply
#4
Solved: 10 Years, 8 Months, 3 Weeks ago
Use one more property to uniquely identify your object, like you may use index here.

Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
thanks for the prompt reply buddy.

thanx
aravind
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesn't support this property or method takecharge 1 1,345 11-13-2019, 10:05 PM
Last Post: stormbringer
  does WebTable Object provides a method to get column number umer830 4 12,452 07-06-2018, 09:32 AM
Last Post: vijaychourasiya0109@gmail.com
  Object doesn't support this property or method: 'window(...).window(...).winobject' senthil5683 1 3,493 07-04-2016, 07:08 PM
Last Post: venkatesh9032
  How to find out the object property in the Description language . njnirmal 9 6,247 05-19-2015, 12:30 AM
Last Post: qtptester66523
  Will Object Property Differ across browsers?? qtplearner88 7 3,758 07-30-2013, 07:18 PM
Last Post: qtplearner88

Forum Jump:


Users browsing this thread: 1 Guest(s)