0

There are two dropdown (A and B). Values in the dropdown B is based on the value selected in Dropdown A.

How to verify values populated into the dropdown B for every value selected in dropdown A?

Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
Thangalakshmi
  • 33
  • 1
  • 5
  • Take a look https://stackoverflow.com/questions/30184055/selenium-select-value-from-a-drop-down-which-is-dependent-on-value-selected-in – Ali Amini Dec 28 '20 at 14:34

1 Answers1

0

Just simulate the click action for dropdown A. Now compare the size of the number of li/option tag in dropdown B with the expected number. If they are equal then you can compare the contents inside by traversing through each li/option tag.

cegprakash
  • 2,937
  • 33
  • 60