Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NEED help with scripting. Web table, Click Link
#2
Not Solved
Hi,

Instead of pasting the code, I suggest you to try this on your own and resolve yourself :-)

Make sure Webtable has unique description and QTP identifĂ­es it properly.

Follow the below process:
Retrieve the data from datatable columns i.e. Product, Price & Orderdate...Say these are Expected Product, ExpectedPrice, ExpectedOrderDate.
Find out RowCount of Webtable.
Use a For loop for looping through the Webtable.
Get the cell values from the column 1,2,3(i.e. Product,Price & OrderDate) for each row and validate them with above expected values
Use a simple "If then" statement so that If current row's cell values are matched with above expected values then use "ChildItem" method to click the correspoding link in that row.
Use exit for to exit the For Loop.

Reply


Messages In This Thread
RE: NEED help with scripting. Web table, Click Link - by sreekanth chilam - 06-08-2012, 04:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Scripting spixol 0 1,496 12-15-2019, 01:14 PM
Last Post: spixol
  Can QTP handle slick grid table in a web page qtplearner88 2 4,491 10-01-2019, 10:44 AM
Last Post: shilpi952
  Child Object Not able to identified in Web Menu Link noor 0 1,857 01-21-2018, 04:44 PM
Last Post: noor
  unable to rowcount in web table manoj84monu 1 2,904 06-13-2016, 04:46 PM
Last Post: Anu1234
  VB scripting Aisha2015 0 2,377 08-07-2015, 02:21 PM
Last Post: Aisha2015

Forum Jump:


Users browsing this thread: 1 Guest(s)