Problem Matching Dropdown to List Element -- Hackathon

I know the issue is that the variable selection = getText(“dogDropDown”) is not displaying the words with quotations around them, therefore when the loop in lines 32 - 38 is running, the first two conditionals are evaluating to false. I am just not sure how to fix it? How do we make the drop down options match what the list in the data set shows, the names of the dogs with quotations?

Thanks!

Set a breakpoint at line 32. Run it and choose Akita.
image
When it pauses let’s use the REPL to test your hypothesis
image
Matching the dropdown to the database isn’t the problem. Let’s add some watchers to see what is going on.
image
The last time through the loop i will be 103. What do you expect will happen?

2 Likes