Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compare second web list value according to the first web list value
#1
Not Solved
Hi,

Can someone please give a solution for the below scenario

Web list 1
Web list 2
If we select item from web list 1, web list 2 values changes accordingly. Need to validate the listed items in web list 2.
Reply
#2
Not Solved
Find the below snippet to give a quick idea how to handle this scenario.
Code:
WL1Selection = DataTable("List1")
Print "WL1- " & WL1Selection
Print "--------------------------"
For iWL2ListItem = 1 To DataTable.GetRowCount
       DataTable.SetCurrentRow iWL2ListItem
    WL2ListItme = DataTable(WL1Selection)
    If WL2ListItme <>"" Then
        Print WL2ListItme
    End If
Next
Global Data Table:

Code:
List1 | AA  | BB  | CC  |
-------------------------
AA    | 1   |  4  |  7  |
-------------------------
BB    | 2   | 5   |  8  |
-------------------------
CC    |  3  |     |  9  |
-------------------------

OutPut:-
Code:
WL1- AA
--------------------------
A
B
C
WL1- BB
--------------------------
D
E
WL1- CC
--------------------------
G
H
I
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,507 10-01-2019, 10:44 AM
Last Post: shilpi952
  Handling Web list running Jquery Divya Srivastava 1 1,509 09-07-2018, 08:42 PM
Last Post: Ankur
  Child Object Not able to identified in Web Menu Link noor 0 1,862 01-21-2018, 04:44 PM
Last Post: noor
Sad How To Find Dropdown Object based on Values from the dropdown list mesg2anil 12 34,107 12-19-2017, 10:25 PM
Last Post: sandy2404
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,714 01-17-2017, 11:05 AM
Last Post: JACKSPARROW

Forum Jump:


Users browsing this thread: 1 Guest(s)