Say you have a page containing one or more dropdowns with lots of options and you want to know exactly how many options are being displayed.
Chrome
- Visit the page
- Open DevTools (F12)
- Open the Elements tab
- Right-click the dropdown -> Inspect
- Find the
select
orul
element which contains theoption
orli
options - Right-click that element -> Copy -> Copy selector
- Open search (CTRL + F) and paste the element
- Add
> option
(if the element is aselect
) or> li
(if the element is aul
)
You will now see 1 out of ## where ## is the number of dropdown options.
Firefox
- Visit the page
- Open DevTools (F12)
- Open the Inspector tab
- Right-click the dropdown -> Inspect
- Find the
select
orul
element which contains theoption
orli
options - Right-click that element -> Copy -> CSS Selector
- Open search (CTRL + F) and paste the element
- Add
> option
(if the element is aselect
) or> li
(if the element is aul
) - Add
> option
(if the element is aselect
) or> li
(if the element is aul
)
You will now see 1 out of ## where ## is the number of dropdown options.