当然,这是我正在尝试做的事情的简化版本。pp类有更多的子元素,我需要查找和查看。在所有的"pp“web元素前面创建一个列表将是很棒的。我一直在尝试的代码是: from selenium import webdriverfrom selenium.webdriver.common.byimport By
from sele
Accessing a webelement within a list of webelement in Selenium using Pything =“a1”这是对以下内容的后续问题: class我收到"NoSuchElementException“消息:没有这样的元素:找不到元素:{"method":"css selector","selector":".a1"} from typing i
我正在尝试通过元素的innerText过滤一个webelement列表到一个webelement。在c#中,我将使用linq子句。在Java中,我试图使用流,但我不知道为什么要得到不兼容的类型错误(必需: org.openQA.selenium.Webelement )。发现: java.util.optional)
public List <WebElement> e