[wtr-general] Re: Script to click the dynamically generated link.

2009-07-29 Thread Chuck van der Linden
On Jul 28, 10:06 pm, Swapnal wrote: > Hi, > > In this application when we add user every user will have the 'Edit' and > 'Delete' link. > > a - associate > > >                                                 > >                                                 > > >                              

[wtr-general] Re: Does watir support i18n testing?

2009-07-29 Thread sHiVa
Hi Zhimin I had a try to automate Chinese Google website using watir. All the Chinese characters are displayed as square boxes when i use IE developer tool bar and when I try to copy Chinese characters in to Scite, those are displayed as "?". Please tell me the approach for testing Chinese (any o

[wtr-general] Getting text between two tags

2009-07-29 Thread Aaron MacDonald
There is a line of text that I want to extract. It is found in some HTML that follows this pattern: Some text Another link (variable text) Text I want to extract. Updated by name (variable) X hours ago [Comment] I have the impression that I'd use XPath somehow, but am unsure how t

[wtr-general] Watir fire_event that opens a modal dialog no wait needed

2009-07-29 Thread ghidu
Hello, I cannot open a modal dialog and return from it. This is waht I do: Thread.abort_on_exception = true t = Thread.new { t[6].fire_event("onmousedown") puts "after event" sleep(1) # raise "Exception from thread" } puts "after thread" for i in (1..100) puts i end t1.

[wtr-general] Watir fire_event that opens a modal dialog no wait needed

2009-07-29 Thread ghidu
Hello, Sorry for the previous message, the finger slipped onver SPACE :) I cannot open a modal dialog and return from it. This is waht I do: Thread.abort_on_exception = true t = Thread.new { button.fire_event("onmousedown") } t.kill It never reaches t. Firing the event onmouse down on butt

[wtr-general] Re: Getting text between two tags

2009-07-29 Thread Dylan
Well, if the only text that is variable is the text within the tags, are there any identifying marks for that link? an id? Otherwise, I suppose you could just get the text for the whole page and subtract the text you already know (i.e. the non-variable text). Not pretty or elegant, but it would g

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-07-29 Thread Charley Baker
There are so many definitions around modal dialogs, did you call click_no_wait before your method. There are a variety of ways to deal with dialog boxes, all have been posted, so search for it if that doesn't work. Post your solution if it does work. Charley Baker blog: http://blog.charleybaker

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-07-29 Thread Adrian Ghidu
click_no_wait doesn't work, only onmousedown opens the modal dialog. Is there a no_wait for fire_event? Thanks On Wed, Jul 29, 2009 at 11:32 PM, Charley Baker wrote: > There are so many definitions around modal dialogs, did you call > click_no_wait before your method. There are a variety of ways

[wtr-general] Re: Getting text between two tags

2009-07-29 Thread Mark Anderson
his gives you a starting place. /\/\ark __ Information from ESET NOD32 Antivirus, version of virus signature database 4289 (20090729) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~-~--~~~---~--~

[wtr-general] Re: Does watir support i18n testing?

2009-07-29 Thread Zhimin
Here are some screencasts of running rWebUnit (an extension of Watir) tests against chinese web sites. http://www.itest2.com/cn/screencasts My Env and Tools: iTest2 IDE, iTest2/Watir Recorder on Windows XP (Simplified Chinese) Zhimin On Jul 30, 4:25 am, sHiVa wrote: > Hi Zhimin > > I had a

[wtr-general] How to capture Errors in batch running

2009-07-29 Thread Prince3105
Hi All, I am a newbie of Watir. I have been using Watir for the past 10 months. I have created so many individual scripts and i run all those by using Scite editor and my scripts update the test results in Excel sheet, going good no issues in it. If any error occurs in the test run i can easily c