硒没有找到这样的元素

Selenium no such element found

我尝试使用 RSelenium 从元素中获取 href。

这里是一个html结构的例子:

<ol id="rem">
<div class="bare">
   <h3>
      <a class="tlt mhead" href="https://www.myexample.com">

我用这个:

pro<-remDr$findElement(using = 'xpath', "//*/input[@class = 'bare']")
  pro$highlightElement()

但是它找不到元素并且returns这个错误:

Error:   Summary: NoSuchElement
     Detail: An element could not be located on the page using the given search parameters.
     class: org.openqa.selenium.NoSuchElementException

我能做什么?

不是 input 元素有 bare class,div(假设 dib 是错字):

//div[@class='bare']/h3/a