I have a situation where i had to handle drop down and click the drop down to select some values. There are two drop down in same page and both has same xpath. The Xpath is giving below.
//div[@name='expiryDate']/div/a/div[2]/i
I know only one way how to handle this, which is adding [1] with the xpath and I tried the below way to handle this.
//div[@name='expiryDate']/div/a/div[2]/i[1]
but it still it is not working.. Is there any other way i can try this?