【发布时间】:2020-07-24 14:45:52
【问题描述】:
现在我正在尝试从this website 抓取数据。我想用 selenium 点击 this"View all updates" button。我使用 SelectorGadget 和 XPath helper 来找到它的 css 选择器和 xpath,但两者都失败了。 我的代码如下:
loadmore <- remDr$findElement(using = 'css selector', ".js-toggle-expand-updates")
loadmore <- remDr$findElement(using = 'xpath', "//*div[@class='js-toggle-expand-updates']")
loadmore$clickElement()
【问题讨论】: