'Select with selenium in python
I wish to use Select to click on the 3rd option in the 1st drop-down ("Fejlesztési programok") menu at the following site: https://www.palyazat.gov.hu/tamogatott_projektkereso?fbclid=IwAR3rmPVj-YAVoMTs2Vodj7JKTVIAZkbTiZ9z4b0j04mq2ThECw5kQOI1p7M
I used css-selector to find the menus id, but it is not reacting to the call. Do you have any idea how to solve it? Many thank in advance
The minimalist example code:
from selenium import webdriver
from selenium.webdriver.support.ui import Select
import time
driver = webdriver.Safari(executable_path = '/usr/bin/safaridriver')
driver.get("https://www.palyazat.gov.hu/tamogatott_projektkereso?fbclid=IwAR3rmPVj-YAVoMTs2Vodj7JKTVIAZkbTiZ9z4b0j04mq2ThECw5kQOI1p7M")
select = Select(driver.find_element_by_id('css-1uccc91-singleValue'))
select.select_by_index(2)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
