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

2009-10-26 Thread yuping zhong
Awesome!Thanks for Frédéric's reply. On Oct 27, 2:26 pm, de Villamil Frédéric wrote: > 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 th

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

2009-10-26 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

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

2009-10-26 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 Gro

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

2009-10-26 Thread Pallavi Sharma
You can try with index property, if any two objects have the same property, use a third one called index. Watir supports multiple attributes to recognize an object. You can directly give the object properties, doesn't matter whether it is in a div or not with watir. Hope this helps. -- Pallavi

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

2009-10-26 Thread abhisheksreepal
Hi Ethan, I have tried using link method. (But Actual Problem is there are more links which have same attributes.) For e.g. Verify for 'Home',My Account','Trade,'Charts' etc. class: mytext href: http://www.edelbullion.com/edelweiss/content/index.jsf# The only attribute which distinguish be

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

2009-10-26 Thread Pallavi Sharma
Sorry Angrez, forgot to mention that. it is 0.9.4. I think i should upgrade firewatir now. On Mon, Oct 26, 2009 at 3:50 PM, Angrez Singh wrote: > Not sure about that. Which Firewatir version are you using? > > > On Mon, Oct 26, 2009 at 3:41 PM, Pallavi Sharma > wrote: > >> The version on whi

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

2009-10-26 Thread Ethan
It is a link. Use the #link method. Please read wiki entries under http://wiki.openqa.org/display/WTR/Start+Here particularly: http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes and: http://wiki.openqa.org/display/WTR/Cheat+Sheet On Mon, Oct 26, 2009 at 23:41, abhisheksreepal wrote: > > I am

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

2009-10-26 Thread abhisheksreepal
I am sorry. I was just going by name class='normalbutton' But Any solution to access these fields. and Also To access menu like 'Home','MyAccount' etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General"

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

2009-10-26 Thread Paul Rogers
the submit and reset buttons are also links Paul On Mon, Oct 26, 2009 at 9:23 PM, abhisheksreepal wrote: > > Hi Paul, > > I am sorry. I should have added these comments. > Just Navigate to Login screen.(By clicking Login link on top right > corner) > Please examine these two fields > Submit and

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

2009-10-26 Thread abhisheksreepal
Hi Paul, I am sorry. I should have added these comments. Just Navigate to Login screen.(By clicking Login link on top right corner) Please examine these two fields Submit and Reset. (I couldn't give you this link(link to Login Screen) since link contains session id which keeps on changing) (Somet

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

2009-10-26 Thread Paul Rogers
the 'register now' and the 'buy now' arent buttons. they look like buttons, but they are links. Use firebug to investigate the dom before posting here please. Paul On Mon, Oct 26, 2009 at 8:54 PM, abhisheksreepal wrote: > > Thanks for the reply Ethan. > > I tried this > puts ie.buttons.length >

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

2009-10-26 Thread abhisheksreepal
Thanks for the reply Ethan. I tried this puts ie.buttons.length But it returned '0' This is the reference link. http://www.edelbullion.com/edelweiss/content/index.jsf Any Suggestion how to go forward. --~--~-~--~~~---~--~~ You received this message because you ar

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

2009-10-26 Thread Ethan
You want to interact with the elements of the 'file upload' dialog? As far as I know that thing doesn't have a document or elements that you can access like an html page. Or if it doesn't watir doesn't support that anyway. I could be wrong - if you figure out how to get a WIN32OLE handle on element

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

2009-10-26 Thread H Kogi
Thank you for quick reply. But I cannot see each object in dialog box as html element. Is there anyway I can view as html elements? IE developer toolbar does not work. I am now trying with WIN32OLE. On Mon, Oct 26, 2009 at 8:15 PM, Bret Pettichord wrote: > > H Kogi wrote: > > > > I may be mi

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

2009-10-26 Thread Bret Pettichord
H Kogi wrote: > > I may be missing something very simple. When I get window's File > Upload dialog, how can I identify file_field's i.e. id, name, index, > etc? (index did not work). I looked in to the the following site and > all the links from there but not finding answers. > > http://wik

[wtr-general] file_field in File Upload dialog

2009-10-26 Thread H Kogi
I may be missing something very simple. When I get window's File Upload dialog, how can I identify file_field's i.e. id, name, index, etc? (index did not work). I looked in to the the following site and all the links from there but not finding answers. http://wiki.openqa.org/display/WTR/File+Upl

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

2009-10-26 Thread Ethan
:onclick isn't supported as a method of locating elements - it doesn't actually appear on the DOM as text, as far as I know, but shows up as a function, so you can't compare text to it. I could be wrong, maybe there's a way to get the text, but I don't think it's likely to be supported in any case.

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

2009-10-26 Thread abhisheksreepal
Hi, Did Anyone come to know about this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read t

[wtr-general] Re: Can't install Watir on latest Ruby one-click installer

2009-10-26 Thread Bret Pettichord
No. I think Aslak is running the new Technology Preview of the one-click installer. They are using the ming32 compiler instead of Visual Studio. http://rubyforge.org/frs/?group_id=167&release_id=38052 This sounds like an issue. We're also going to need to recompile Watir's support for modal dia

[wtr-general] Re: Click ok on popup

2009-10-26 Thread orde
Check this out: http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIfixaWIN32OLERuntimeErrorwhenIuseAutoIt%3F Hope that helps. On Oct 26, 10:48 am, Shlomit Gazit wrote: > I am getting this in the console, but it is not breaking the test, I > just need manually to click on both OK buttons. > > c:/

[wtr-general] Re: Can't install Watir on latest Ruby one-click installer

2009-10-26 Thread Charley Baker
Hey Aslak, Missed seeing you this year at Agile. :) Thanks for the details, responses inline On Mon, Oct 26, 2009 at 9:48 AM, Aslak Hellesøy wrote: > > I realisesd I had a rather old Ruby in my previous post, so I > installed the newest Ruby One-Click installer (1.8.6): > I believe you were

[wtr-general] Re: Click ok on popup

2009-10-26 Thread Shlomit Gazit
I am getting this in the console, but it is not breaking the test, I just need manually to click on both OK buttons. c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x800401f3

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Ethan
For me, I was working around problems I was having with FileField#set in IE8, and I ended up just rewriting the #set method. For my implementation, I needed the hWnd of the FileField's browser, so I just iterated up through the @containers to find the browser. -Ethan On Mon, Oct 26, 2009 at 13:09

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Charley Baker
Good question, I'm actually somewhat curious as well as to the use case. :) -c On Mon, Oct 26, 2009 at 11:07 AM, Paul Rogers wrote: > can you explain why you need this? > > Paul > > On Mon, Oct 26, 2009 at 9:46 AM, Yuriy wrote: > >> >> Thanks a lot, Ethan! >> >> On Oct 26, 4:33 pm, Ethan wrot

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Paul Rogers
can you explain why you need this? Paul On Mon, Oct 26, 2009 at 9:46 AM, Yuriy wrote: > > Thanks a lot, Ethan! > > On Oct 26, 4:33 pm, Ethan wrote: > > Unfortunately, there doesn't seem to be. I have run into this, and what I > > ended up doing was to iterate up through the containers until I

[wtr-general] Re: Does WATIR will work on Silverlight and Ajax technologies?

2009-10-26 Thread Charley Baker
There are ways to make your Silverlight apps scriptable, so it would follow a similar model potentially as Funfx or FlashWatir. Scripting Silverlight(there's probably a fair amount of other documentation out there as well as this): http://mark-dot-net.blogspot.com/2007/06/howto-make-your-silverligh

[wtr-general] Re: Does WATIR will work on Silverlight and Ajax technologies?

2009-10-26 Thread Bret Pettichord
Shaik Mohammed Firoz wrote: > Does WATIR will work on Silverlight and Ajax technologies? > Ajax: yes. Silverlight: i don't think so. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to

[wtr-general] Re: Can't install Watir on latest Ruby one-click installer

2009-10-26 Thread Željko Filipin
On Mon, Oct 26, 2009 at 4:48 PM, Aslak Hellesøy wrote: > What Ruby versions do people use to get Watir installed > and working? I have recently also had a fresh Ruby and Watir installation and had some problems. I would recommend: (from http://watir.com/installation/) - ruby186-26.exe (http://

[wtr-general] Can't install Watir on latest Ruby one-click installer

2009-10-26 Thread Aslak Hellesøy
I realisesd I had a rather old Ruby in my previous post, so I installed the newest Ruby One-Click installer (1.8.6): > ruby --version ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] This Ruby version doesn't come with the win32* gems installed, so when I try to gem install watir it wants t

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Yuriy
Thanks a lot, Ethan! On Oct 26, 4:33 pm, Ethan wrote: > Unfortunately, there doesn't seem to be. I have run into this, and what I > ended up doing was to iterate up through the containers until I found the > browser. something along the lines of: > > browser=some_div > while browser && !browser.

[wtr-general] Does WATIR will work on Silverlight and Ajax technologies?

2009-10-26 Thread Shaik Mohammed Firoz
Hi All, Sorry, I have no idea whether this is right area to post this question or not. But please someone response to the below would be appreciated. Does WATIR will work on Silverlight and Ajax technologies? Thanks in advance, --~--~-~--~~~---~--~~ You received

[wtr-general] WIN32OLERuntimeError: failed to create WIN32OLE object from `InternetExplorer.Application' - HRESULT error code:0x800704a6

2009-10-26 Thread Aslak Hellesøy
Hi folks, Any idea how to solve this problem? http://gist.github.com/218720 I'm on Windows XP (Norwegian Windows, English IE). Running in VMWare Fusion on OS X Leopard. I googled around but didn't see anything to help me get around this. (I found several mentions of the error message, but no ref

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

2009-10-26 Thread Bret Pettichord
I'm wondering if the problem might be traced to a plugin? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, ple

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Ethan
Unfortunately, there doesn't seem to be. I have run into this, and what I ended up doing was to iterate up through the containers until I found the browser. something along the lines of: browser=some_div while browser && !browser.is_a?(Watir::IE) browser=browser.instance_variable_get('@container

[wtr-general] Re: Error occured while working with firefox browser

2009-10-26 Thread Angrez Singh
Code works for me. I am using Firewatir 1.6.5rc2 and Firefox 3.5. Can you try updating your firewatir installation using instructions over here and then try your code? http://wiki.openqa.org/display/WTR/Development+Builds - Angrez On Mon, Oct 26, 2009 at 5:55 PM, rrash586 wrote: > > I installed

[wtr-general] Re: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-26 Thread Željko Filipin
On Mon, Oct 26, 2009 at 1:23 PM, Naveen devadass wrote: > watir (1.6.1) Type this into command prompt and try again: gem update --system gem install watir Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Wa

[wtr-general] How to get browser instance from inside an element?

2009-10-26 Thread Yuriy
Hi all, is there any way I can get browser instance from inside an element? Here is what I mean by that: ie_instance = IE.new some_div = ie.div(:any, 'any') some_div.a_method_to_get_browser_instance # <--- this is an assumed method which would return the ie_instance Thanks. --~--~-~--~--

[wtr-general] Re: Error occured while working with firefox browser

2009-10-26 Thread rrash586
I installed jssh from http://wiki.openqa.org/download/attachments/13893658/jssh-20080708-WINNT.xpi?version=1 as i am using the mozilla firefox 3.0 i also tried with jssh http://wiki.openqa.org/download/attachments/13893658/jssh-3.5.x-WINNT.xpi?version=1 but the same problem persist On Oct 26,

[wtr-general] Re: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-26 Thread Naveen devadass
HI , I am getting following C:\>gem list watir *** LOCAL GEMS *** watir (1.6.1) Please help me out.i am unble to use the watir On Oct 22, 1:32 pm, Željko Filipin wrote: > On Thu, Oct 22, 2009 at 9:16 AM, Naveen devadass > wrote: > > > irb(main):002:0> require "watir" > > LoadError: no suc

[wtr-general] how to recognized DIV object

2009-10-26 Thread rrash586
Hi All, I am testing the GWT based application on IE7. In my application when i click on the add button a new row (run time generation) is generated .I am facing the problem while locating the object as it is in DIV. can anyone let me know how to click on the object in DIV i am having only the t

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

2009-10-26 Thread abhisheksreepal
Hi, I have just started working with real time application.I am facing some problems. Issue 1: Unable to Click Buttons I have observed that there are two buttons. Button1: class: 'normalbutton' href: 'http://192.168.135.75:8080/edelweiss/content/login.jsf' Button2: class:

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

2009-10-26 Thread al3kc
Your code works well on watir 1.6.2 and FF 3.5.3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read t

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

2009-10-26 Thread Angrez Singh
Not sure about that. Which Firewatir version are you using? On Mon, Oct 26, 2009 at 3:41 PM, Pallavi Sharma wrote: > The version on which we are checking is Firefox 3.0, maybe it is because of > this. > > > > On Mon, Oct 26, 2009 at 3:22 PM, Pallavi Sharma > wrote: > >> Hi Angrez >> >> So can it

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

2009-10-26 Thread Pallavi Sharma
The version on which we are checking is Firefox 3.0, maybe it is because of this. On Mon, Oct 26, 2009 at 3:22 PM, Pallavi Sharma wrote: > Hi Angrez > > So can it be a possibility that this might fail with other firewatir and > firefox versions? > > Please let me know. > > Thanks > > Pallavi. >

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

2009-10-26 Thread Pallavi Sharma
Hi Angrez So can it be a possibility that this might fail with other firewatir and firefox versions? Please let me know. Thanks Pallavi. On Mon, Oct 26, 2009 at 3:04 PM, Angrez Singh wrote: > Your code works for me. I am using Firewatir 1.6.5rc2 with Firefox 3.5.3 > > - Angrez > > On Mon, Oc

[wtr-general] Re: Error occured while working with firefox browser

2009-10-26 Thread Željko Filipin
On Mon, Oct 26, 2009 at 10:33 AM, Angrez Singh wrote: > all I wanted is to make the project read only in google code and move everything to openqa Sure, I will reply in another thread about what to do. I hope I did not sound rude, I just wanted to point it as an example why I am pushing so hard

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

2009-10-26 Thread Angrez Singh
Your code works for me. I am using Firewatir 1.6.5rc2 with Firefox 3.5.3 - Angrez On Mon, Oct 26, 2009 at 2:17 PM, Pallavi Sharma wrote: > Hi > > I have a weird situation where the Fire-watir sometimes work very smoothly > with the scripts involving regular expression to identify the objects but

[wtr-general] Re: Error occured while working with firefox browser

2009-10-26 Thread Angrez Singh
I agree with you .. all I wanted is to make the project read only in google code and move everything to openqa - Angrez On Mon, Oct 26, 2009 at 2:38 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Mon, Oct 26, 2009 at 7:44 AM, Angrez Singh wrote: > > Which JSSh extension you hav

[wtr-general] Re: Error occured while working with firefox browser

2009-10-26 Thread Željko Filipin
On Mon, Oct 26, 2009 at 7:44 AM, Angrez Singh wrote: > Which JSSh extension you have installed and from where? Angrez, I hope I am not pushing this too much, but you would not need "and from where" if we had firewatir stuff located only in one place. Željko -- watir.com - community manager wati

[wtr-general] FireWatir Issue with Regular expressions

2009-10-26 Thread Pallavi Sharma
Hi I have a weird situation where the Fire-watir sometimes work very smoothly with the scripts involving regular expression to identify the objects but in another case, the script just hangs. and also this scenario happens on different systems, which have the same configuration. Can anyone advic

[wtr-general] FireWatir Issue with Regular expressions

2009-10-26 Thread Pallavi Sharma
Hi I have a weird situation where the Fire-watir sometimes work very smoothly with the scripts involving regular expression to identify the objects but in another case, the script just hangs. and also this scenario happens on different systems, which have the same configuration. Can anyone advic

[wtr-general] Re: Not Able to Use Rspec framework

2009-10-26 Thread Jarmo Pertman
require 'rubygems' require 'watir' require 'spec' describe "Blah" do before :all do @b = Watir::Browser.new end it "does something" do @b.goto "http://google.com"; end describe "some other thing" do @b.goto "http://watir.com"; end end Jarmo On Oct 23, 4:4

[wtr-general] Re: Not Able to Use Rspec framework

2009-10-26 Thread abhisheksreepal
Thanks. "do" was missing after "Enter Username" On Oct 23, 7:45 pm, Bret Pettichord wrote: > abhisheksreepal wrote: > > include Watir::Container > > Don't do this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Wa