无法单击"100"按钮以显示所提供的HTMl的100个结果。我已经尝试了Xpath,类,cssselector,但我显然做错了一些事情。
网页:https://pastebin.com/miyyVLP7
页面网址: https://www.dlapiper.com/en/uk/people/#q=london&sort=relevancy
WebElement hundredResults = driver.findElement(By.xpath("//div[@id='peoplesearch']/div[3]/div[4]/div[9]/ul/li[4]/a"));
hundredResults.click();
这将起作用:
element=driver.find_element_by_xpath("//[@id='peoplesearch']/div[3]/div[4]/div[9]/ul/li[a")
driver.execute_script("arguments[0].click();", element)
按钮前面似乎还有另一个元素。