Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NEED help with scripting. Web table, Click Link
#5
Not Solved
Code:
ExpectedProduct=Datatable("Product",dtLocalSheet)ExpectedPrice=Datatable("Price",dtLocalSheet)
ExpectedOrderDate=Datatable("Ord_date",dtLocalSheet)

RC=Browser(...).Page(..).WebTable(..).RowCount
For i=1 to RC
   Actual_Product=Browser(...).Page(..).WebTable(..).GetCellData(i,2)
   Actual_Price=Browser(...).Page(..).WebTable(..).GetCellData(i,3)
   Actual_OrdDate=Browser(...).Page(..).WebTable(..).GetCellData(i,4)
    If (ExpectedProduct=Actual_Product And ....... And ...... ) Then
           Browser(...).Page(..).WebTable(..).ChildItem(i,1,"Link",0).Click
           Exit for
   End if
Next

Now its your turn to implement accordingly buddy Smile
Reply


Messages In This Thread
RE: NEED help with scripting. Web table, Click Link - by sreekanth chilam - 06-08-2012, 08:41 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,901 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)