Please ensure to include your code between [code][/code] tags while asking or replying to questions.

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

WebTable - Select Row

06-21-2010, 12:19 PM
Post: #1
Solved: 8 Months, 1 Week, 2 Days, 20 Hours, 27 Minutes, 34 Seconds ago WebTable - Select Row
Hi all,

When i select the row in the webtable by manual, the [Delete] and [Ship to this address] buttons was enabled and accessible. But when perform this action by QTP as:

Code:
Set Obj = rowser("Cyber").Page("AddressBook").WebTable("tblAddress").Object.rows(2)
Obj.Click

These button is still disabled, although the row was highlighted. I don't know why? So can anybody tell me the reason pls?

Thanks and BRs,
linhke
Find all posts by this user
Quote this message in a reply
06-21-2010, 12:32 PM (This post was last modified: 06-21-2010 12:34 PM by rajeshwar.)
Post: #2
Solved: 8 Months, 1 Week, 2 Days, 20 Hours, 27 Minutes, 34 Seconds ago RE: WebTable - Select Row
You can Check for the events (if any) that are fired.

There might be some events(like onblur,onmouseup) that are fired when you do it manually, which QTP is not able to simulate.

~Rajeshwar.

Thanks,
Rajeshwar

Practice as if you are the worst, perform as if you are the best
Find all posts by this user
Quote this message in a reply
06-24-2010, 09:55 AM
Post: #3
Solved: 8 Months, 1 Week, 2 Days, 20 Hours, 27 Minutes, 34 Seconds ago RE: WebTable - Select Row
I found the solution for this action:

Code:
Browser("B").Page("P").Frame("F").WebTable("T").Object.rows(i).cells(i).Click
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  data sheet row count rushil 2 551 12-07-2012 03:10 AM
Last Post: rushil
  Write Status of each row in DataTable dlaureano 2 596 11-29-2012 05:53 PM
Last Post: dlaureano
  How to recognize table row and column siwani 4 2,159 04-05-2012 05:06 PM
Last Post: verma.vik6
Rolleyes How to select multiple choices from Multi-Select weblist blavanya 3 3,038 01-03-2012 05:55 PM
Last Post: shivu.hanu
  How to get row count if xls file is generating dynamically. iamsekhar 10 3,862 08-26-2010 12:08 PM
Last Post: iamsekhar



User(s) browsing this thread: 1 Guest(s)