【发布时间】:2022-01-05 21:47:44
【问题描述】:
我想用 Selenium (python) 找到一个基于 class 标签的 id
我想找到一个 html 表单的结果。有 2 个可能的结果,可用或不可用。 这两个选项都会出现在 html 代码中,但会使用两种不同的 CSS 格式来显示结果并隐藏另一个选项。
我想根据 div 类“Content Warning”(这是结果)获取 id(“WarningDisponible”或“WarningIndisponible”),“Content Warning hidden”不是结果。
非常感谢!
【问题讨论】:
标签: python selenium xpath css-selectors webdriverwait