Right now my script go to page and open the second object from the drop down list, \"Vijesti\", before I get the error message.
This is the error:
The page refreshes itself when an item is chosen from the dropdown.
You need to "refind" the select
element on each option select:
select = Select(driver.find_element_by_name('kategorija'))
for index in range(len(select.options)):
select = Select(driver.find_element_by_name('kategorija'))
select.select_by_index(index)
# grab the results