how to count number of items present in dropdown

how to count number of items present in dropdown


I want to count the number of items present in drop down list.
i try to use xpath for count but the code is not worn=king. can any one suggest me another method in C#.
This topic belongs to the forum
  • Numbers of topics : 2329
  • Numbers of messages : 6043
  • Numbers of users : 5006
  • Numbers of points : 243
Similar topics
Hi,, Using selenium IDE, how it is possible to count the number of elements in a combo box. Any solution?
Hi I am clicking on a web element by this code"class=rtPlus"); here i am having so many elements with same class=trPlus, so i need the count to do for loop. Can any one suggest me how to get the count I am new to selenium.. so
import com.thoughtworks.selenium.*; @SuppressWarnings("deprecation") public class objectcount extends SeleneseTestCase { public void setUp() throws Exception { setUp("","*firefox"); } public void
Hi, how can i select and click on any one item present in combo box(Timesheet CR,zzz,Other Activities) below is my html code Code: <div class="x-combo-list-item x-combo-selected" style="white-space:
Hi I am new to Selenium. I am using Selenium with Java. I would like to retrieve number of rows of a table and need to retrieve content of each row of a specific column to validate. I can identify the table only with "id" property. But that
Forums from same category