欢迎来到Doc100.Net免费学习资源知识分享平台!
您的位置:首页 > 程序异常 >

how would i access a pop ui button

更新时间: 2014-01-05 02:25:52 责任编辑: Author_N1

 

How would I access a pop ui button?

原文链接:http://stackoverflow.com/questions/5958075/how-would-i-access-a-pop-ui-button

 

Question:

I have a pop up button that is triggered by deleting an object. How can I click the button if I can seem to find it.

I have used xpath like so:

$browser.button(:xpath, "/html/body/div/div/div/div/div/div/button").click

Here is a code snippet: The text is Highlighted.

Thanks in advance.

 

Answers:

 

Try this:

browser.span(:text => "Delete").click

or

browser.span(:class => "ui-button-text).click

or

browser.button(:class => /ui-button/).click
上一篇:上一篇
下一篇:下一篇

 

随机推荐程序问答结果

 

 

如对文章有任何疑问请提交到问题反馈,或者您对内容不满意,请您反馈给我们DOC100.NET论坛发贴求解。
DOC100.NET资源网,机器学习分类整理更新日期::2014-01-05 02:25:52
如需转载,请注明文章出处和来源网址:http://www.doc100.net/bugs/t/9717/
本文WWW.DOC100.NET DOC100.NET版权所有。