Guest User

Untitled

a guest
Jan 21st, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. Type Balance Date received Date returned Payment method Amount
  2. General Default 10/01/2013 08:53:20 Cash $ 10.00
  3.  
  4. HTML of my table looks like this. <th> is table title row and <td> are the entries done by the user. Everytime the user add the new entry, the count will increase and display a message "3 found for account 6478 ". where 3 is no of rows in the table.
  5. <fieldset>
  6. <table id="listBalances" class="listTable" width="100%">
  7. <thead>
  8. <tr>
  9. <th>Type</th>
  10. <th>Balance</th>
  11. <th>Date received</th>
  12. <th>Date returned</th>
  13. <th>Payment method</th>
  14. <th>Amount</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <tr>
  19. <tr class="alt">
  20. <td>General Deposit</td>
  21. <td>Default for RTB</td>
  22. <td>09/30/2013 06:58:41</td>
  23. <td/>
  24. <td>Cash</td>
  25. <td>$ 5.00</td>
  26.  
  27. storeXpathCount | id=listBalances | NumberOfRows
  28. echo | ${NumberOfRows}
  29.  
  30. List<WebElement> columnElments = driver.findElements(By.cssSelector("...blablabla..."));
  31. int rowNumer = columnElmments.size();
  32.  
  33. @FindBy
  34. (how = How.CSS, using = "blablablba")
  35. List<WebElement> col;
  36.  
  37. int rowNumer =col.size();
Add Comment
Please, Sign In to add comment