Syntaxerror Trying To Use Select In Selenium For Python
Here are the relevant lines of my code: from selenium.webdriver.support.ui import Select select = Select(browser.find_element_by_name('TimecardPeriodList') select.select_by_index(5
Solution 1:
The code is missing a closing parenthesis.
select = Select(browser.find_element_by_name("TimecardPeriodList"))
^
Post a Comment for "Syntaxerror Trying To Use Select In Selenium For Python"