Selenium Webdriver 无法找到类

问题描述 投票:0回答:1
python html selenium-webdriver xpath
1个回答
0
投票

错误方式:

//td[@class, 'meetingCellDesktopMediumAbove_femjjxq']
正确:
//td[@class='meetingCellDesktopMediumAbove_femjjxq']
如果你使用 contains(),最好把“_femjjxq”部分剪掉:
//td[contains(@class, 'meetingCellDesktopMediumAbove')]

© www.soinside.com 2019 - 2024. All rights reserved.