[Wtr-general] BUG: Using XPath

2007-01-25 Thread Prema Arya
Hi, I was trying to get the th from table as asked by Brad http://www.mail-archive.com/wtr-general@rubyforge.org/msg06677.html. I was using element_by_xpath and it didn't work and there was no reason why it should not work. After investigating I came across the function

Re: [Wtr-general] BUG: Using XPath

2007-01-25 Thread Bret Pettichord
On 1/25/07, Prema Arya [EMAIL PROTECTED] wrote: This change should be checked-in in the main branch also, Bret can you give me access right to check-in? or someone else also can check-in the change. Please submit a patch. ___ Wtr-general mailing

Re: [Wtr-general] how to press function keys (F5)?

2007-01-25 Thread Tulbi
Thank you, the answer was simple as they always are. I had to replace by ', but it helped me a lot. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6019messageID=17653#17653

[Wtr-general] How to access a table present within a form?

2007-01-25 Thread vijay
Hello people, I do not know how to access a table present inside a form using Watir. This table is the first table (index = 1) of the html page. It is throwing an error for the command, result = ie.frame('builderFrame'),form(:name,'dummy').table(:index,1)[1][1].text but it is accepting the

Re: [Wtr-general] How to access a table present within a form?

2007-01-25 Thread John Lolis
result = ie.frame('builderFrame') , form(:name,'dummy').table(:index,1)[1][1].text well if that comma is in the actual code i don't think its going to work :) - Posted via Jive Forums

Re: [Wtr-general] error with running a testsuite

2007-01-25 Thread Željko Filipin
Change your method name from default_test to test_default. test/unit thinks method is a test only when method name starts with test_. No tests were specified. error means that you do not have any method which name starts with test_. -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] BUG: Using XPath

2007-01-25 Thread Željko Filipin
On 1/25/07, Bret Pettichord [EMAIL PROTECTED] wrote: Please submit a patch. And here is explanation how to make a patch: Patching Code is Easy in Ruby by Bret Pettichord http://www.io.com/~wazmo/blog/archives/2006_09.html#000241 -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] BUG: Using XPath

2007-01-25 Thread John Lolis
thanks for the link Zeljko, always wondered how patches worked. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6275messageID=17660#17660 ___ Wtr-general mailing

[Wtr-general] How to add date/time stamp in HTML reports (using Test Unit Reporter)

2007-01-25 Thread Brad
I'm running the Test Unit Reporter in HTML, the report looks good but I don't see a Date / Time stamp of when the test was performed in the summary.html. How does one add this information to this report. Using: Test::Unit::UI::Reporter.run(TestSuite_AllTests,'build/report',:html) Thanks, Brad

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-25 Thread Andrew
Hi Can i use w.click_link_with_text( text ) to click on a link, insted of clicking a button within this function? Thank you - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5883messageID=17680#17680

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-25 Thread Charley Baker
I'm not sure I understand what you're saying, but the function of click_link_with_text in Watir Simple is to click a link with the given text. If it's not working the way you expect, you could provide more details? -Charley On 1/25/07, Andrew [EMAIL PROTECTED] wrote: Hi Can i use

Re: [Wtr-general] Cannot select in dropdown box, written in javascript

2007-01-25 Thread Bret Pettichord
Andrew wrote: I am new to Watir and need to select an item in a dropdown box. This dropdown is a table and located in a body, written in javascript. I tried regular $ie.select_list( :name , search_clientid).select(qaone), but it doesn't work. Please help! body script type=text/javascript

[Wtr-general] how to populate hidden text area?

2007-01-25 Thread Suman Goel
My webpage has the following code: textarea name=J__LDESC style=visibility:hidden(NULL)/textarea My watir test has the following code: @ie.text_field(:name, J__LDESC).set(some text) I am getting the following error: 1) Error:

Re: [Wtr-general] How to handle the popup security alert

2007-01-25 Thread Charley Baker
You can use either/or. I'm working with AutoIt internally on our own version based off of WindowHelper which uses AutoIt. The only trick is adding support for IE 7, which instead of using popups, opens a new tab. -Charley On 1/24/07, Jason He [EMAIL PROTECTED] wrote: Hi, I'm using https to

Re: [Wtr-general] How to handle the popup security alert

2007-01-25 Thread Jason He
I have tried several times and found that error returned when using clearSecurityAlertBox push_security_alert_yes. I searched the archived mailing list, not found an example showing how to make it happen. The Watir doesn’t provider such examples too. Yes, we can use IE 7 to bypass this