【发布时间】:2020-06-15 01:10:48
【问题描述】:
无法单击“100”按钮以显示提供的 HTMl 的 100 个结果。我已经尝试过 Xpath、类、cssselector,但我显然做错了一些事情。
HTML: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();
【问题讨论】:
-
粘贴箱为空
-
嗨伙计,我可以看到它.. pastebin.com/miyyVLP7
-
好的,由于某种原因我看不到它。
-
如果它有助于另一个粘贴网站 - expandinggreenlanddog.htmlpasta.com
-
driver.findElement(By.xpath("//div[@class='coveo-results-column']/ul/li[4]/a"));看看这行不行?
标签: java selenium-webdriver css-selectors