[wtr-general] !assert doesn't work in in Unit Test.

2009-10-27 Thread yuping zhong
Dear All, As it is known to all that,assert can be use in the unit test But when I try to use the !assert ,it always fails,any idea of this? Thanks in advance. -Zhong --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: !assert doesn't work in in Unit Test.

2009-10-27 Thread de Villamil Frédéric
Le 27 oct. 2009 à 07:24, yuping zhong a écrit : Dear All, As it is known to all that,assert can be use in the unit test But when I try to use the !assert ,it always fails,any idea of this? Thanks in advance. -Zhong Hello, To have a negative assert working (mostly on non visible

[wtr-general] Re: FireWatir Issue with Regular expressions

2009-10-27 Thread Angrez Singh
Firewatir 0.9.4 :) ... that is history now .. you should upgrade .. I am not sure how you are able to run the test cases on firewatir. - Angrez On Tue, Oct 27, 2009 at 9:32 AM, Pallavi Sharma write2pall...@gmail.comwrote: Sorry Angrez, forgot to mention that. it is 0.9.4. I think i should

[wtr-general] Re: FireWatir Issue with Regular expressions

2009-10-27 Thread Pallavi Sharma
:) feeling sheepish... Thanks will do so now... On Tue, Oct 27, 2009 at 12:39 PM, Angrez Singh ang...@gmail.com wrote: Firewatir 0.9.4 :) ... that is history now .. you should upgrade .. I am not sure how you are able to run the test cases on firewatir. - Angrez On Tue, Oct 27, 2009 at

[wtr-general] Re: Answering incomplete requests

2009-10-27 Thread Tim Koopmans
I also like the tone of that page. I think it's a really bad idea to either humiliate people or go over- the-top with rules like SQAForums. Maybe some people are lazy, others might just be ignorant but I try not to judge as I don't know their circumstances. The questions I've answered here and

[wtr-general] Re: FireWatir Issue with Regular expressions

2009-10-27 Thread Pallavi Sharma
oh i guess it installs correct but when i say gem --version firewatir gives 0.9.4 why so?? any idea?? On Tue, Oct 27, 2009 at 2:33 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Angrez when i do gem install firewatir, it is installing gem version 0.9.4; can you please let me know

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread Željko Filipin
On Tue, Oct 27, 2009 at 5:10 AM, abhisheksreepal abhisheksree...@gmail.com wrote: The only attribute which distinguish between them is 'onclick' Then try :xpath or :html (code not tested): browser.link(:xpath,//a...@onclick='onclick_value']/).click http://wiki.openqa.org/display/WTR/XPath

[wtr-general] Re: how to recognized DIV object

2009-10-27 Thread rrash586
Thanks for input , i tried it as $ie.div(:text,'name1').set(abc') whether i am doing something wrong .. i am not getting it for the above i.e $ie.div(:text,'name1').set(abc') for this i am getting following error undefined method `set' for #Watir::Div:0x8cbe53c (NoMethodError) Please let

[wtr-general] Re: how to recognized DIV object

2009-10-27 Thread Pallavi Sharma
Div doesn't have set function What i was saying that the Div contains maybe a text box on which you are trying to set the text. so directly give the textbox identification ie.text_field(:prop,value).set this should work.. Let me know. On Tue, Oct 27, 2009 at 4:08 PM, rrash586

[wtr-general] Re: file_field in File Upload dialog

2009-10-27 Thread Raveendran P
Hi Kogi, require 'rubygems' require 'win32ole' homers_bird(File_Upload_window_Name) def homers_bird(dialog_name,key={enter}) @ur=C:\\Documents and Settings\\raveendran\\My Documents\\My Videos\\nike_airport.flv wsh = WIN32OLE.new('WScript.Shell') wsh.AppActivate(dialog_name) sleep(2)

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread abhisheksreepal
Thanks Zeljko, With xpath, I could easily detect 'Reset' Button' .Here I am using @href ie.link(:xpath,//a...@href='login.jsf']/).click #Click Reset Button But for The Buttons Submit,Menu, I am using onclick(onclick value for Submit which is unique for Submit--Verified with source)

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread Željko Filipin
If j_id75 is unique in onclick, try this: browser.link(:html, j_id75).click Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: file_field in File Upload dialog

2009-10-27 Thread H Kogi
Raveendran and Ethan, Thanks for your input. I started doing what you posted using WIN32OLE and just relying on SendKey. On Tue, Oct 27, 2009 at 8:00 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Kogi, require 'rubygems' require 'win32ole' homers_bird(File_Upload_window_Name) def

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread abhisheksreepal
Hi Zeljko, It is not working. Unable to locate element, using :html, j_id75 (Watir::Exception::UnknownObjectException) Please correct me If i am wrong Since onclick is an event, xpath might not work (I think only attributes like href will work with xpath) Zeljko, Can I use Regular Expression

[wtr-general] watir or selenium

2009-10-27 Thread Gossler Erika
Hi, I'm searching any info of comparing Watir and Selenium. I have found a lot of usefull linkstips on the internet, but if you have some recent comparison of these two let me know. Many thanks, E. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread Ethan
I don't expect you'll be able to get it working using the options you have for #link - I think you will have to iterate over #links. Try something like container.links.detect do |link| link.ole_object.getAttributeNode('onClick').value == var a=function(){ etc end

[wtr-general] Re: !assert doesn't work in in Unit Test.

2009-10-27 Thread Bret Pettichord
de Villamil Frédéric wrote: To have a negative assert working (mostly on non visible elements), I've been using the following: assert true == false if Not the best way to do it I guess, but works like a charm. Regards These will also do the same thing: assert false if ...

[wtr-general] Re: !assert doesn't work in in Unit Test.

2009-10-27 Thread de Villamil Frédéric
Le 27 oct. 2009 à 15:47, Bret Pettichord a écrit : de Villamil Frédéric wrote: To have a negative assert working (mostly on non visible elements), I've been using the following: assert true == false if Not the best way to do it I guess, but works like a charm. Regards These

[wtr-general] Basic authentication on Linux with FireWatir

2009-10-27 Thread Aedorn Varanis
I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can

[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread aidy lewis
Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing

[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread Aedorn Varanis
This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but

[wtr-general] Re: Watir 1.6.5.rc2 - release candidate available for testing

2009-10-27 Thread Shlomit Gazit
After upgrading I am getting the error: /Users/shlomit/.gem/ruby/1.8/gems/firewatir-1.6.5.rc2/lib/firewatir/ container.rb:46: uninitialized constant FireWatir::Container::JsshSocket (NameError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'

[wtr-general] Re: Watir 1.6.5.rc2 - release candidate available for testing

2009-10-27 Thread Bret Pettichord
Can you share the code that is failing? Specifically the code on and around line 7 of /Users/shlomit/workspaces/trunk/ff_c2p_watir/ff_c2p_test_issues_2_menus_dev.rb Shlomit Gazit wrote: After upgrading I am getting the error:

[wtr-general] Re: how to recognized DIV object

2009-10-27 Thread George
If it's the text field within the div, I believe you can also use the after? method: $ie.text_field(:after? $ie.div(:text, 'name1')).set('abc') On Oct 27, 3:44 am, Pallavi Sharma write2pall...@gmail.com wrote: Div doesn't have set function What i was saying that the Div contains maybe a

[wtr-general] Re: Watir 1.6.5.rc2 - release candidate available for testing

2009-10-27 Thread Shlomit Gazit
require 'rubygems' require 'firewatir/container' -- the problematic line require 'watir/browser' On Oct 27, 2:44 pm, Bret Pettichord b...@pettichord.com wrote: Can you share the code that is failing? Specifically the code on and around line 7 of

[wtr-general] Re: watir tests are not passing on my environment

2009-10-27 Thread Shlomit Gazit
I am taking my last comment back. It doesnt work. Now with wait_until it hangs until 60sec and then the test breaks, but it doesnt find any popup. It is so inconsistent. And the ridicules thing is that I am using the same piece of code in both watir and java so how come sometimes it is working

[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread Chris
I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of

[wtr-general] Re: watir tests are not passing on my environment

2009-10-27 Thread Shlomit Gazit
I had an idea to kill ie process from task manager and it helped for a while, but then after 6 or 7 popups, it couldn't find the popup anymore. Could it be that it related somehow with cache? On Oct 27, 4:49 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: I am taking my last comment back.

[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread aidy lewis
The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser.  You have to have credentials for every page

[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread Ethan
Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The

[wtr-general] Re: watir or selenium

2009-10-27 Thread Raveendran P
Hi E, This link will highlight some imp points -- http://bit.ly/1dtC2w thanks On Tue, Oct 27, 2009 at 7:21 PM, Gossler Erika gossler.er...@gmail.comwrote: Hi, I'm searching any info of comparing Watir and Selenium. I have found a lot of usefull linkstips on the internet, but if

[wtr-general] Re: how to recognized DIV object

2009-10-27 Thread Pallavi Sharma
This is cool... never knew that... -- Pallavi. On Wed, Oct 28, 2009 at 3:20 AM, George george.sand...@gmail.com wrote: If it's the text field within the div, I believe you can also use the after? method: $ie.text_field(:after? $ie.div(:text, 'name1')).set('abc') On Oct 27, 3:44 am,

[wtr-general] Multiple select_list(s) with the same name

2009-10-27 Thread Ben
Below is a sniplet of the code of the web page. I 'm trying to test. How can I select the option from the second list, the 'Fine Art' section using WATIR? For example ie.select_list(:name, select).set(Drawing - In A Day) WATIR wont let me because the system is looking at the list from

[wtr-general] Re: Multiple select_list(s) with the same name

2009-10-27 Thread Pallavi Sharma
Have you tried multiple attributes and used index?? ie.select_list(:name = select, :index = 2).set(Drawing - In A Day) Try this. It should solve the issue. -- Pallavi On Wed, Oct 28, 2009 at 7:38 AM, Ben bgo...@googlemail.com wrote: Below is a sniplet of the code of the web page. I

[wtr-general] Re: Basic authentication on Linux with FireWatir

2009-10-27 Thread Raveendran P
Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to