首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Access >

How would I access a pop ui button

2012-07-26 
How would I access a pop ui button?原文链接:http://stackoverflow.com/questions/5958075/how-would-i-

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:?How would I access a pop ui button

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

热点排行