如何仅在加号存在时使用selenium单击加号并提取行
在下面的链接中,如何仅在加号存在时使用selenium单击加号并提取行 以及如何从给定的链接中提取特定的表如何仅在加号存在时使用selenium单击加号并提取行,selenium,Selenium,在下面的链接中,如何仅在加号存在时使用selenium单击加号并提取行 以及如何从给定的链接中提取特定的表 elems=driver.find_elements_by_xpath("//section[@id='balance-sheet']//button[./span[.='+']]') for elem in elems: elem.click() 这应该可以让所有的按钮点击并点击它们。是否有任何方法可以一次提取具有不同id的表,但您可以使用pandas.read\u
elems=driver.find_elements_by_xpath("//section[@id='balance-sheet']//button[./span[.='+']]')
for elem in elems:
elem.click()
这应该可以让所有的按钮点击并点击它们。是否有任何方法可以一次提取具有不同id的表,但您可以使用pandas.read\u html()来读取整个表。