ITeye博客

2012 年文章归档

共 10 篇文章

Brain storming a method of validating a HTML table's content with Watir-webdrive

Question: I am trying to work out a method to check the content of an HTML table with Watir-webdriver. Basically I want to validate the table contents against a saved valid table (CSV file) and they are the same after a refresh or redraw action. Ideas I've come up with so far are to: Grab the table…

2012-04-01 14:45

Using watir-webdriver, how can I fire an event without waiting for the page to l

link: http://stackoverflow.com/questions/6127031/using-watir-webdriver-how-can-i-fire-an-event-without-waiting-for-the-page-to-l Question: The code for i in 0..10 $browser.link(:id => "send_link").fire_event("onclick") puts "Click #" + i.to_s end only displays "Click #0" to the console before crash…

2012-04-01 14:45 · watir-webdriver · watir · 开源自动化测试

How do I get watir-webdriver to start Firefox 4 with Firebug?

原文链接: http://stackoverflow.com/questions/6065092/how-do-i-get-watir-webdriver-to-start-firefox-4-with-firebug Any ideas? I've tried setting webdriver.firefox.useExisting=true as described in the link below hoping to reuse an existing window with firebug enabled, but no such luck. http://code.google…

2012-04-01 14:45 · watir-webdriver · watir · 开源自动化测试

Watir: How can I execute in a watir script a specific javascript function called

原地址 http://stackoverflow.com/questions/6051786/watir-how-can-i-execute-in-a-watir-script-a-specific-javascript-function-called Question In a Watir script, after I check checkboxes in a popup window, I'm trying to execute a javascript function to add objects selected to the parent window. What works…

2012-04-01 14:43 · watir-webdriver · watir · 开源自动化测试

Locating a LI element using :text using watir-webdriver

原文链接: http://stackoverflow.com/questions/5948881/locating-a-li-element-using-text-using-watir-webdriver Question I am trying to locate and click on a jQuery menu element, the menu is defined as multiple UL elements containing a number of LI elements. Using Firefox 3.6.17 on Mac 10.5, in standard WA…

2012-04-01 14:43 · watir-webdriver · watir · 开源自动化测试

watir-webdriver checking table size rows and columns count

原链接: http://stackoverflow.com/questions/5963606/watir-webdriver-checking-table-size-rows-and-columns-count Question: I am starting the process of converting my WATIR scripts to use WATIR webdriver. There a couple of table methods I was using in my WATIR scripts to check the size (rows and columns) …

2012-03-31 23:32 · watir-webdriver · watir

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/b…

2012-03-31 23:29 · watir-webdriver · watir

Is there an alternative to watir::ie.attach for watir-webdriver since attach is

原文链接 http://stackoverflow.com/questions/5796059/is-there-an-alternative-to-watirie-attach-for-watir-webdriver-since-attach-is Question: I have a website which is only rendered in Webkit enabled browser (Google Chrome, Safari). I am using Google Chrome since I am on Windows 7. I am using Watir-WebDr…

2012-03-31 23:27 · watir-webdriver · watir

Using watir-webdriver, how can I click a table row?

原文链接: http://stackoverflow.com/questions/5721438/using-watir-webdriver-how-can-i-click-a-table-row Question: I'm trying to convert my old watir scripts to use watir-webdriver instead, as that will (eventually) support IE9 and Firefox 4. $browser.table_row(:id => "account_1").click is what I used to…

2012-03-31 23:20 · watir-webdriver · watir

Adding security exceptions in Firefox

原文链接: http://stackoverflow.com/questions/5589139/adding-security-exceptions-in-firefox Question: I have a script running watir-webdriver(using Firefox 4.0) that needs to access a web page that Firefox thinks has an invalid certificate. The problem is that after I accept the certificate, Firefox jus…

2012-03-31 23:18 · watir-webdriver