Python网络抓取<span unselectable =“ on” class =“ k-input”> </span>

时间:2018-11-29 15:57:16

标签: python-2.7 web-scraping

我正在尝试使用此值填写下拉列表

website dropdown

我的代码:

    _input_state = browser.find_element_by_class_name("k-input")
    _input_state.focus()
    _input_state.send_keys(Keys.ARROW_DOWN)
    _input_state.send_keys(Keys.ARROW_DOWN)
    _input_state.send_keys(Keys.ARROW_DOWN)
    _input_state.send_keys(Keys.ARROW_DOWN)
    _input_state.send_keys(Keys.ARROW_DOWN)
    _input_state.send_keys(Keys.ARROW_DOWN)
    time.sleep(2)

Website HTML code printscreen

但是我似乎无法选择它。有什么帮助吗?正确值应为:

> <span unselectable="on" class="k-input">Medrepair - Smirnoffweg
> Rotterdam</span>

预先感谢

0 个答案:

没有答案