【发布时间】:2020-01-02 10:35:31
【问题描述】:
我需要帮助来识别xpath 以输入文本并使用Robot 框架从下拉列表(https://www.phptravels.net)中进行选择。
- 点击酒店选项
- 输入诸如“德里”之类的文字
- 输入诸如“德里”之类的文字,然后从下拉列表中选择城市“德里”
使用 Robot 框架和 selenium 库。
Input Text xpath://*[@id=\"select2-drop\"] Delhi,India
Input Text xpath://*[@id=\"select2-drop\"]/div/input Delhi,India
Input Text xpath://*[contains(text(),'Search by Hotel or City Name')] Delhi
我收到以下错误:
找不到定位器的元素
【问题讨论】:
-
欢迎来到 SO!只是下次的提示:stackoverflow.com/help/how-to-ask