我想从 span 中获取文本,但是我在指向这个选择器时遇到了问题。
我试着定义如下:
this.channelName = Selector('span[class="scheduler-header__service-name"]');
或this.channelName = Selector('div').find('#schedule').find('.scheduler-header').find('.scheduler-header__service-name')
我总是收到信息:
“Cannot obtain information about the node because the specified selector does not match any node in the DOM tree.”
有人可以为我声明这个选择器吗?
很简单:) this.channelName = Selector('.scheduler-header__service-name');
如果您再次遇到编写选择器的问题,请使用Generate a Selector query 函数。它在 [email protected] 中可用。