Issue
I want Selenium to choose an option but it didn't work for me I tried this
phone = Select(driver.find_element(By.NAME, "PhoneCountry"))
phone.select_by_data-value(self, US)
and it failed
And this is the html
Solution
I found the solution
Select(driver.find_element_by_id("PhoneCountry")).select_by_visible_text(u"United States (+1)")
Answered By - IFM
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.