I am trying to find out the Total number of flight details been displayed in a particular search. I used Xpath which works, but not fully. Now I wanted to use JavaScript code from the site.
Please see:
a style="color:#FF0099;cursor: pointer;" title="Click here for Flight details"
onclick="javascript:showDiv(this,'flightdetail28','28','6a7891beb531878bce3246240a2a9e63')
Now I just wanted to know how many flights are been displayed, like the above as flightdetail28.
Please suggest: How to use the JavaScript code and implement it in my Selenium RC.