Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capegemini Telephonic Interview (my first interview)
#3
Not Solved
take a counter and fetch the value of the cells in datatable and compare against the desired value, increase the counter for every match.

Code:
col_count= Browser().Page().WebTable().ColumnCount(1)
  row_count=Browser().Page().WebTable().RowCount
'counter
cell_count = 0

  For irow=2 to row_count
      For icol = 1 to col_count
          If  trim(Browser().Page().WebTable().GetCellData(irow,icol))= "data to be searched" Then
              cell_count = cell_count+1
          End If
         Next
Next
msgbox cell_count
Reply


Messages In This Thread
RE: Capegemini Telephonic Interview (my first interview) - by anu05446 - 02-16-2014, 10:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interview Questions praveen.sharma 4 6,720 08-23-2022, 02:07 PM
Last Post: ahmad3029
  Interview Questions supputuri 12 15,224 08-23-2022, 11:45 AM
Last Post: ahmad3029
  Interview question nandha 0 2,225 03-28-2018, 03:32 PM
Last Post: nandha
  Few Interview Question asked in various Companies.. shailesh.2.singh@bt.com 1 3,963 08-08-2017, 09:24 AM
Last Post: mallika199317@gmail.com
  Interview Question raghavaqtp 1 4,155 12-20-2014, 09:55 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)