How would I access a pop ui button?
- 博客分类:
- watir-webdriver
- watir
原文链接: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:
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
发表评论
-
Get values from a select list using xpath [closed]
2012-04-04 16:50 0http://stackoverflow.com/que ... -
How do I build Watir tests for websites?
2012-04-04 16:14 0http://stackoverflow.com/que ... -
“TypeError: can't convert String into Integer” when trying to CTRL+click or SHIF
2012-04-04 15:33 0http://stackoverflow.com/que ... -
Using Watir, how can I select a radio control using both name and value?
2012-04-04 15:23 0q http://stackoverflow.com/q ... -
Selecting multiple options in select list with shift
2012-04-04 15:19 0Q http://stackoverflow.com/ques ... -
Drag-and-Drop in Watir
2012-04-04 15:15 0http://www.cheezyworld.com/2010 ... -
How to test onclick in this object without id
2012-04-04 15:13 0http://stackoverflow.com/que ... -
Browser Certificates
2012-04-04 15:01 0http://watirwebdriver.com/b ... -
selected_options returns blank from iframe
2012-04-04 14:48 0link http://stackoverflow.com/q ... -
How to handle tinyMCE when automating with watir-webdriver?
2012-04-04 14:28 0I'm evaluating Watir-webdr ... -
Browser url not returning new url
2012-04-01 17:55 0Qhttp://stackoverflow.com/quest ... -
Can not drive Opera with watir-webdriver on Windows XP
2012-04-01 17:53 0Qhttp://stackoverflow.com/quest ... -
why must I sleep or wait using watir-webdriver and firefox?
2012-04-01 17:50 0Qhttp://stackoverflow.com/quest ... -
Firefox 4 with watir webdriver: Need help using helperApps.neverAsk to save CSV
2012-04-01 17:39 0Q http://stackoverflow.com/q ... -
Watir Webdriver counting number of items in a UL list
2012-04-01 17:22 0Q http://stackoverflow.co ... -
finding the direct child of a tag in watir
2012-04-01 17:13 0Qhttp://stackoverflow.com/quest ... -
How to determine browser type (IE, FF, Chrome, etc.)
2012-04-01 16:59 0Q http://stackoverflow.com/que ... -
Wait methods for watir-webdriver unsuccessful with JS/AJAX and new page load (Er
2012-04-01 16:19 0http://stackoverflow.com/questi ... -
How to send text to a CKEditor WYSIWYG editor box using Watir-WebDriver
2012-04-01 16:14 0Q http://stackoverflow.com/ques ... -
How can I get Browser.text.include? to be case insensitive?
2012-04-01 15:57 0Q:http://stackoverflow.com/ques ...
相关推荐
5. How can we make sure that an app is in a certain state in a Citrix environment? 6. What happens if you send “123[k(enter)]” by using Type Into activity with the SimulateType property selected? ...
I present a way to think about access lists and network policy, describe how access lists are built, and give examples of how to apply those access lists in different situations. Along the way, ...
其中部分题目 1. What are the uses of web scraping in Ui...5. How can you Publish a process to the Orchestrator server? 6. What is a reusable component? 7. What is the output of a recording session?
Ok it's cute, But how can I use You just need to add this in your layout. How about click event? In magic button, the click event will work only in second click and you can set this event with:...
How do I use a derived CListCtrl with a CListView?怎样使用来源于CListCtrl的列表视图(2KB)
1.2.1 How can I get/set an environment variable from a program? 1.2.2 How can I read the whole environment? 1.3 How can I sleep for less than a second? 1.4 How can I get a finer-grained version of...
这是一篇关于如何找到一份体面的工作的英文作文,里面语法非常丰富,是作者的呕心之作
How can I become a better writer.ppt
Application which shows how to access a password protected Access database using DAO and ADO.
一个STK关于GPS通讯和GPS分析的傻瓜教程。
六年级Unit 1 How can I get there测试题精选.doc
perl学习文字版。 1. Introduction ....How Do I Make a Perl Program? 12 A Simple Program 13 What’s Inside That Program? 15 How Do I Compile My Perl Program? 16 A Whirlwind Tour of Perl 17 Exercises 18
Unix编程常见问题解答(FAQ/Frequently Asked Questions)(v1.37)(中文版 v0.1.0) ...6.5 How can I generate a stack dump from within a running program? 我能在一个运行着的程序中生成堆栈映象吗?
3. Is using the ‘Publish’ button in Studio the only way to upload a package to Orchestrator? 4. How can you see only the jobs that ran on attended robots? 5. How can the processes in a schedule be...
How to access a user control from another user control in ASP.NET
This is the fourth edition of a book I started writing in 1999, when I was teaching at Colby College. I had taught an introductory computer science class using the Java programming language, but I had...
How and why I came to use Python In 1999, the College Board's Advanced Placement (AP) Computer Science exam was given in C++ for the ˉrst time. As in many high schools throughout the country, the ...
How To_ Integrate K2 and UiPath Setting up K2 to handle UiPath's API Requirements
How To Write A Dissertation
A comprehensive tutorial-style eBook that gets you from zero to native Web application development with JavaScript in no time. Each chapter will cover simple examples and explain the concepts in ...