这个问题已经在这里有了答案:????????????>????????????Compound class names not permitted error Webdriver????????????????????????????????????6个
>????????????Invalid selector: Compound class names not permitted using find_element_by_class_name with Webdriver and Python????????????????????????????????????2个
我正在尝试从下拉菜单中选择一个选项,然后单击“搜索”,但是我无法获得“选择”标签.
我要抓取的HTML如下:
model="selected.destinationList" ng-if="!bIsLoading" ng-
change="applyPrefetch()" ng-disabled="bSearchLoading" ng-
options="maps.itineraries[dest].Name for dest in prefetch.itineraries
track by dest">
Seleziona
destinazione
Caraibi
Emirati Arabi
Giro del Mondo
America
我要选择的选项是:
Caraibi
我正在使用的代码如下:
from selenium import webdriver
from selenium.webdr