I am a total beginner and am currently programming a bot to fetch data from the Frankfurt stock exchange. (link in case someone needs it: https://www.boerse-frankfurt.de/ )
So far, I have managed to make the bot type the stock names into the search bar, but now I want the bot to select one of the search predictions.
Ideally, I’d want the bot to look for the closest match, because as you can see, the search predictions of the stock exchange look for the most valueable stock and not the closest match.
Alternatively, it would be enough if you guys can tell me how to click the first prediction and I will just find stocks that are easier to search.
Here’s my bot if you want to check how I worked so far: