I am using get attribute and select “inner text” from there to fetch all the values in the drop-down list and then taking all the values in a single string variable by appending with ‘,’ after each available options [dropdownOptions.Replace(" ", “,”)].
Output string I am getting as -
Select one:, A, B, C, D, …
Here ‘Select one:’ is the header text which appears by-default in the drop-down list and it is also getting appended as list of option values along with others.
Can anyone please suggest how to remove this initial header from the list of available options?
Expected Output is : A, B, C, D,…