处理带有重音符号的单词
我试图通过作为链接的显示名称访问字段,如下所示:
并尝试通过执行以下操作来访问该项目:
t= $browser.link(:text => "MÓVEL").exists?
t.click
这错误是:
无法定位元素,使用 {:text=>"M\303\223VEL", :tag_name=>"a"} (Watir::Exception::UnknownObjectException)
I'm trying to access a field by the display name that is a link, something like this:
<a class="node" href="javascript: MCMenu(7);">MÓVEL</a>
and trying to access the item by doing this:
t= $browser.link(:text => "MÓVEL").exists?
t.click
the error is:
unable to locate element, using {:text=>"M\303\223VEL", :tag_name=>"a"} (Watir::Exception::UnknownObjectException)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用如下正则表达式:
Try it with a regex like this: