码迷,mamicode.com
首页 > 编程语言 > 详细

selenium python选取下拉框中的值

时间:2018-12-13 10:26:09      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:question   driver   web   下拉   find   red   action   picker   com   

https://stackoverflow.com/questions/47689936/unable-to-scroll-and-select-desired-year-from-calender-in-webdriver-python

Year1990 = driver.find_element_by_xpath("//*[@id=‘ui-datepicker-div‘]/div/select[2]/option[28]")
ActionChains(driver).move_to_element(Year1990).click(Year1990).perform()

selenium python选取下拉框中的值

标签:question   driver   web   下拉   find   red   action   picker   com   

原文地址:https://www.cnblogs.com/Raul2018/p/10112075.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!