0
votes

I recorded one interaction that expands a drop-down menu and selects the 3rd option in Selenium IDE. Now when I replay it, I see the drop-down gets expanded but the option does not get selected. Can anyone please help me solve this problem?

I'm providing screenshots of the pages source/html code here: [Red arrows show the corresponding html tags]

enter image description here

Here is the recorded script: [Red error shows the corresponding selenium script command]

enter image description here

1
Can you show us the code for driving Selenium? It seems likely the problem is there. - Derrell Durrett
Here a Google document (docs.google.com/document/d/…) with the source code, thanks! - Ishtiaque Hussain

1 Answers

0
votes

I got a solution to the problem and it's working. Please let me know if you have any better/easy solution than this.

We needed to use X-path to detect the drop-down. I used Chrome's developer tool to capture the x-path : selected the drop-down item > right-clicked > Copy > X-path. Providing a screenshot below:

enter image description here