I've recently begun writing some basic Python code using the Helium library. Here's what I've done so far:
from helium import *
start_chrome('https://eureka.mf.gov.pl/informacje/podglad/573501')
click('Eksportuj')
After clicking the 'Eksportuj' button, a new floating window appears, which includes the following elements:
A dropdown list with various values, and I need to select the 'txt' option. Another 'Eksportuj' button. I'm wondering how I can modify my script to handle this new window and perform the required actions (i.e. exporting the content to txt file)?
To select an item from a dropdown list using Helium, you can use the select() function. In your case, it looks like you want to click on the "Eksportuj" button, which might not be related to selecting an item from a dropdown. However, if you have a dropdown on the page and you want to select an item from it, here's how you can do it:
Assuming you have an HTML dropdown like this:
You can use Helium to select an item from this dropdown:
Add any additional actions you need