Re: [Wtr-general] Inconsistent results for nested tables

2007-07-22 Thread Angrez Singh
Hi Philip, Which Firewatir version are you using? We'll try to reproduce it here. Could you provide us more information about the page you are accessing? Regards, Angrez On 7/21/07, Philip Rhoades [EMAIL PROTECTED] wrote: People, The following script returns 1 most of the time but about 25%

Re: [Wtr-general] Watir General is moving to Google

2007-07-12 Thread Angrez Singh
HI Bret, I tried subscribing to the group with subscription type as Email - Send each message to me as it arrives but not able to subscribe. Got error message There is a problem with your choice of subscription type Is there problem with group settings? Regards, Angrez On 7/12/07, Bret

Re: [Wtr-general] Click a button

2007-07-06 Thread Angrez Singh
Try ie.button(:class, btn_login_up).click - Angrez On 7/6/07, Chitta Ranjan [EMAIL PROTECTED] wrote: Hi,, I want to click a button using any one of these attribute class - btn_login_up onmousedown-

Re: [Wtr-general] How can I click h4 headline?

2007-07-03 Thread Angrez Singh
Try this: ie.element_by_xpath(//[EMAIL PROTECTED]'addproject']).click() - Angrez On 7/3/07, Zeljko [EMAIL PROTECTED] wrote: I have a h4 headline that I have to click. h4 id=addprojectCreate a new project/h4 This does not work. ie.h4(:id, addproject).click Is there a way to click it?

Re: [Wtr-general] Unable to click on links with the same text

2007-07-02 Thread Angrez Singh
Try this: ie.link(:href, bcd).click - Angrez On 7/2/07, Lavanya Lakshman [EMAIL PROTECTED] wrote: Following is my sample script : html head titleTitle of page/title /head body This is my first homepage. bThis text is bold/b a href=urlText to be displayed/a a href=bcdText to be displayed/a

Re: [Wtr-general] Problem in clicking javascript alert button in firewatir

2007-06-28 Thread Angrez Singh
Hi, We are working on it and probably this will be there in next release. Regards, Angrez On 6/29/07, VIKASH KUMAR [EMAIL PROTECTED] wrote: I am using firewatir version 1.0.2 I am able click on javascript OK button using the below code :: $ff.button(:text,/Cancel/).click_no_wait

Re: [Wtr-general] how can i access a link inside iframe.

2007-06-27 Thread Angrez Singh
Hi Sourabh, More information like HTML code that you are trying to access, watir code that you have written would be really helpful to us in helping you. Regards, Angrez On 6/27/07, sourabh jain [EMAIL PROTECTED] wrote: does watir supports iframe. if yes then how can i click a line defined

Re: [Wtr-general] How to click a span item wihout a id or class...

2007-06-22 Thread Angrez Singh
Hi, Try clicking the link which is parent of SPAN element. ie.link (:id,entryPanel_levelChooser_panel_stepChooser_tabbedStepChooser_panel_proxyListPanel_proxyTree_i_3_nodeLink).click - Angrez On 6/22/07, Ralph [EMAIL PROTECTED] wrote: Hi, We have a web client that uses wicket as framework.

Re: [Wtr-general] display errors without exiting the script?

2007-06-22 Thread Angrez Singh
catch WIN32OLERuntimeError this exception in the same way as you did for Watir::Exception::NoMatchingWindowFoundException - Angrez On 6/22/07, mihai [EMAIL PROTECTED] wrote: tnx it works; i have another problem, please help i have this error:

Re: [Wtr-general] How to click a span item wihout a id or class...

2007-06-22 Thread Angrez Singh
Hi, Can you try this: ie.link(:text, 'Main Road Nijmegen').click - Angrez On 6/22/07, Ralph [EMAIL PROTECTED] wrote: That will work but that is not what I want... let me explain. I want to click on item in a list, and this case it is number 3, so that is why Tree_i_3_nodeLink has the 3 in

Re: [Wtr-general] display errors without exiting the script?

2007-06-20 Thread Angrez Singh
Hi, Try this: begin $ie1=IE.attach(:title, /bla bla bla/) rescue Watir::Exception::NoMatchingWindowFoundException [ do what you want to do in case you don't find the matching window] end Hope this helps. - Angrez On 6/20/07, mihai [EMAIL PROTECTED] wrote: i have a link in $ie wich

Re: [Wtr-general] Want to display data in the same row using Puts

2007-06-13 Thread Angrez Singh
Hi, The question you asked was related to Ruby and not to Watir. I think you should start reading the book Programming Ruby. It will be there in your installation directory i.e. where you have installed ruby. - Angrez On 6/14/07, sapna [EMAIL PROTECTED] wrote: Thanks a lot Zeljko. Is there

Re: [Wtr-general] [Firewatir] Fireevent not working

2007-06-09 Thread Angrez Singh
Hi, We are working on it. Will let you know the results soon. Regards, Angrez On 6/9/07, jhun [EMAIL PROTECTED] wrote: Can you please help me. I have this code: lis = $browser.elements_by_xpath(//li); lis.each do |li| $logger.log(value: + li.id); if (li.id == d.id[4..10])

Re: [Wtr-general] A query on Watir - Will watir/firewatir work on Linux?

2007-05-31 Thread Angrez Singh
Hi Vijay, 1. Will watir/firewatir work on Linux? (at this point, I am sure which flavor of Linux the client uses. I believe, the client would be using 'Red Hat Linux') Firewatir will work on Firefox on any platform (Windows/Linux/MacOS). Watir is only targeted for IE on Windows. 2. Is

Re: [Wtr-general] Fetching Today's date in the mm/dd/yyyy

2007-05-30 Thread Angrez Singh
Hi, You can refer to following link for more details on how to format date. http://www.ruby.ch/ProgrammingRuby/htmlC/ref_c_time.html#strftime - Angrez On 5/30/07, sapna [EMAIL PROTECTED] wrote: Hi, Can you tell me how to fetch today's date and decrement month or day or year. This is

Re: [Wtr-general] Error while calculating day of the year

2007-05-28 Thread Angrez Singh
Hi, yday() is method that is defined for object of Time class. But your method invocation of yday() doesn't seems to be on object of time class. following should work require 'date' positivedate=(Time.now) # Object of time class day_of_the_year = positivedate.yday() # Invoke

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread Angrez Singh
Hi Gary, Since you are starting a new thread for handling pop up. The text that you are sending to console will not be available to you. Also the captureText that you are writing won't be able to help you because the pop up will already be closed by start_js_clicker. If you look at the file

Re: [Wtr-general] Use of attribute_value() under WATIR 1.5.1.1145

2007-05-14 Thread Angrez Singh
Hi, type: id: name: value: disabled: false src: http://blahmachine/blahapplication/blahicons/blah.gif file date:04/23/2007 file size:1246 width:17 height: 17 alt: And from IRB if I type: irb(main):135:0 puts fr.images[1].attribute_value(file date) nil = nil

Re: [Wtr-general] xpath question (not Watir related)

2007-05-11 Thread Angrez Singh
Hi, Can you give this a try? e = REXML::Document.new(ie.text).root.elements e[/tokens/ShortUrl[starts-with(@url, resetpassword.aspx?m=7fb83717-9606-4022-bd4e-67b6f6582ada].attributes[url] As you already know value of 'm' in query string you can create a string a give it a try. - Angrez

Re: [Wtr-general] Using custom attributes

2007-05-09 Thread Angrez Singh
Hi, With Watir 1.4.1 you can use xpath to access such elements. tr = ie.element_by_xpath(//[EMAIL PROTECTED]'12345']) - Angrez On 5/10/07, Andrew Kuzmin [EMAIL PROTECTED] wrote: Hi All, Is there any way to access an element by a custom attributes value ? In my situation, for our web

Re: [Wtr-general] FireWater: click on link should launch new page/tab, but does not

2007-05-08 Thread Angrez Singh
Hi Chris, I was able to click on the help link which opened in new window. Currently you can connect to only new window not new tab. Make sure you have allowed popups for that site. I got error that Firefox prevented from opening a pop up from the site. When I allowed pop ups I was able to click

Re: [Wtr-general] How To Click On The Image Button...With This html Code?

2007-05-04 Thread Angrez Singh
Hi, The element you are trying to click is not an image element i.e. not of type image. But its input type=image which is different. So you should try using following code. ie.button(:src, /search_top/i).click If you use your code 'Watir' is correctly clicking the image which is having the

Re: [Wtr-general] playing with FireWatir on OSX

2007-05-03 Thread Angrez Singh
/firewatir-1.0.2/ On 5/3/07, Chris McMahon [EMAIL PROTECTED] wrote: On 5/3/07, Angrez Singh [EMAIL PROTECTED] wrote: Hi Chris, You might want to have a look at this for installing FireWatir or MAC OS X. http://crasch.livejournal.com/550521.html According to the troubleshooting section

Re: [Wtr-general] how to capture text from popup window

2007-04-26 Thread Angrez Singh
hi, this is simplest code that you can have: start_jsalert_clicker $ie.button(:name,[some_name]).click read_js_popup_contents # This only clicks ok button. Change teh path accordingly. def start_jsalert_clicker Thread.new{ system(rubyw

Re: [Wtr-general] how to capture text from popup window

2007-04-26 Thread Angrez Singh
with watir.or ru talking about autoit tool.. Regards Shalini On 4/26/07, Angrez Singh [EMAIL PROTECTED] wrote: Hi, Simply saying its not working won't be of any help :). Did you get any errors, exceptions? Make sure that IE is in focus when you use the code. Is autoit installed properly? Same code

Re: [Wtr-general] how to capture text from popup window

2007-04-26 Thread Angrez Singh
] how to capture text from popup window To: wtr-general@rubyforge.org HI, No im not getting any exception,error.. but it becomes silent ...like not doing any thing... just command promt remains open.. nothing happens.. regards shalini gupta On 4/26/07, Angrez Singh [EMAIL

Re: [Wtr-general] how to capture text from popup window

2007-04-26 Thread Angrez Singh
/26/07, Angrez Singh [EMAIL PROTECTED] wrote: Hi, Did you modified WindowHelper.rb file? You need to update push_alert_button method to log the text of pop up to file c:\test.txt. Regards, Angrez On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: hi, i have used ur code as.. Yes

Re: [Wtr-general] how to capture text from popup window

2007-04-26 Thread Angrez Singh
Hi, Few mistakes: 1. You are adding text to file called popup.txt and reading from test.txt def push_alert_button @autoit.WinWait Windows Internet Explorer, text = @autoit.WinGetText Windows Internet Explorer file = File.open(c:\\popup.txt, w) file.puts text

Re: [Wtr-general] Get a class value

2007-04-26 Thread Angrez Singh
Hi Russ, Which watir version are you using? Regards, Angrez On 4/26/07, Russ DeWolfe [EMAIL PROTECTED] wrote: I get this when I try that solution: NoMethodError: undefined method `attribute_value' for #Watir::TableCell:0x2dd8e f0 ___ Wtr-general

Re: [Wtr-general] how to capture text from popup window

2007-04-24 Thread Angrez Singh
Hi, As far as I know, clicking some button on Pop up window happens in a different process (different from current process in which your script is running). Correct me if I am wrong here? You can get the text using AutoIt3 and WinGetText method. The only thing you need to find out is how you

Re: [Wtr-general] problem in attaching to browser using FireWatir

2007-04-19 Thread Angrez Singh
Hi Vikash, As of now you can't do that in Firewatir. You can only attach to windows using an instance of Firefox. This is by design as we have to maintain all the browser instances that are currently opened and close them accordingly. Will try to come up with a solution which works like Watir

Re: [Wtr-general] Watir and smartclient

2007-04-19 Thread Angrez Singh
Hi Sadeesh, Is it possible for you to post the sample output as in how it looks? Certainly looking at the output one could be able to help in telling whether you can use Watir for testing or not. Regards, Angrez On 4/19/07, Sadeesh Vinoth [EMAIL PROTECTED] wrote: Can anyone help me.

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-30 Thread Angrez Singh
Hi, Sorry my fault for not telling the correct way to get REXML. You can download the Development [zip] which will download rexml_3.1.6.zip to your machine. Unzip and run 'install.rb' file. Then try the code with comma included. Regards, Angrez On 3/30/07, rkkanneganti [EMAIL PROTECTED] wrote:

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-30 Thread Angrez Singh
Hi, Can you replace your functions.rb file in [ruby installation dir]/blib/ruby/1.8/site_ruby/rexml/ with the one that is attached and try the code again. Regards, Angrez On 3/30/07, rkkanneganti [EMAIL PROTECTED] wrote: hi angrez following is the step by step of the code being executed ##

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-30 Thread Angrez Singh
Hi, looks like the bad luck is still continuing. I had copied your functions.rbattachment. In my system the path was like this c:\ruby\lib\ruby\1.8\rexml\ :) .. .it happens, can you just send the code or the test case you are using. I'll try running it here on my machine. Will solve this

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-30 Thread Angrez Singh
I was a silly mistake, typo ,:-) It was a silly mistake. - Angrez ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-30 Thread Angrez Singh
Hi, I was a silly mistake, tarted # select element that has text Mark as Read #element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read')) ie.element_by_xpath(//li[contains(.,'Mark as Read')]) I gave you the correct code to select the element but you are not assigning it to any

Re: [Wtr-general] problem in identifying the button

2007-03-30 Thread Angrez Singh
Hi, try this: ie.image(:src, some path).click() - Angrez On 3/30/07, ankur bajpai [EMAIL PROTECTED] wrote: Hi I am very new to Ruby-Watir and i am facing a problem in clicking a button which has no input name The HTML is like tr bgcolor=#cctda target=_selfhref=(some path)img src=(some

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-29 Thread Angrez Singh
Hi, I uses XPath to get the element. Actually if you see the HTML the Mark as Read is an LI element for which I think there is no class in watir. One way is to create you own class inheriting for Element class. Other way is to find the element and click it. Did you tried the code that I sent in

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-29 Thread Angrez Singh
hi, can you send me the line which is giving this error? I didn't got even a single error on my machine using this script Regards, Angrez On 3/29/07, rkkanneganti [EMAIL PROTECTED] wrote: hi angrez I made changes to the code as you said.. and i am getting this exception wrong number of

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-29 Thread Angrez Singh
Hi, ie.element_by_xpath(//li[contains(.'Mark as Read')])## New code provided by you I think you are missing a comma (,) between dot (.) and Mark as Read or is it a typo. Regards, Angrez ___ Wtr-general mailing list

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-29 Thread Angrez Singh
Hi, Please provide enough information while sending the error. Can you just try installing latest version of REXML (http:// www.germane-software.com/software/*rexml*/)? Regards, Angrez On 3/30/07, rkkanneganti [EMAIL PROTECTED] wrote: hi angrez when the comma is kept before Mark as Read

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-28 Thread Angrez Singh
hi, Can you just let me know the script that you are using and the watir version? - Angrez On 3/28/07, rkkanneganti [EMAIL PROTECTED] wrote: when i called the test case ie yahoo mail mark the first file, i am getting the exception or error as undefied method 'element' for nil:NilClass

[Wtr-general] Selenium IDE vs Watir

2007-03-28 Thread Angrez Singh
Hi, What are the differences/limitations of each of these other than Watir works on IE and Selenium IDE works on Firefox? Regards, Angrez ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-28 Thread Angrez Singh
Hi, I think the code usage is not correct. element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read')) its ie.element_by_xpath(//li[contains(.'Mark as Read')]) # Print properties of the element just to make sure you selected correct element. Is this comment on single line?

Re: [Wtr-general] Watir 1.5..1..1158 installation

2007-03-27 Thread Angrez Singh
Hi, Why you have uninstalled Ruby? Any reasons. Regards, Angrez On 3/27/07, Simba [EMAIL PROTECTED] wrote: I have download Development version of Watir( Watir-bonus-1.5.1.1158 ) But when i give gem install Watir in CMD prompt ,its Installing Watir.1.4.1 instead of watir 1.5.1.1158 [It says

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-27 Thread Angrez Singh
Hi Mathew, The above code works on my machine. It certainly marks the message as read or unread. Can you try the code and let me know what happens? - Angrez 'PS: It has not been tested against Yahoo beta mail. On 3/27/07, Mathew Jacob [EMAIL PROTECTED] wrote: Not able to select the button

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-27 Thread Angrez Singh
PROTECTED] *On Behalf Of *Angrez Singh *Sent:* Tuesday, March 27, 2007 7:08 PM *To:* wtr-general@rubyforge.org *Subject:* Re: [Wtr-general] Unable to select the button from button-menu Hi Mathew, The above code works on my machine. It certainly marks the message as read or unread. Can you try

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-27 Thread Angrez Singh
* * *Ya**ho**o India, EGL, Bangalore – 71, Phone:+91-80-30516346, Mobile:+91-9945849925* -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Angrez Singh *Sent:* Tuesday, March 27, 2007 7:33 PM *To:* wtr-general@rubyforge.org *Subject:* Re: [Wtr-general

Re: [Wtr-general] handling custom HTML attribute

2007-03-25 Thread Angrez Singh
Hi, You can use xpath to get custom element. XPath works only with watir versions 1.4.1 Regards, Angrez On 3/24/07, x y [EMAIL PROTECTED] wrote: Hi, I'm new to this tool and learning through. Currently I'm facing a problem while starting the script: weare using the WinRunner and the

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-23 Thread Angrez Singh
PROTECTED] *On Behalf Of *Angrez Singh *Sent:* Friday, March 23, 2007 11:06 AM *To:* wtr-general@rubyforge.org *Subject:* Re: [Wtr-general] Unable to select the button from button-menu Hi Mathew, Just looked at the Yahoo mail app (not the beta one) and had a look at the HTML. The options that you

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-23 Thread Angrez Singh
-30516346, Mobile:+91-9945849925* -- *From:* Angrez Singh [mailto:[EMAIL PROTECTED] *Sent:* Friday, March 23, 2007 4:57 PM *To:* Mathew Jacob; wtr-general@rubyforge.org *Subject:* Re: [Wtr-general] Unable to select the button from button-menu Hi, Sorry forgot to mention

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-22 Thread Angrez Singh
Hi Mathew, Just looked at the Yahoo mail app (not the beta one) and had a look at the HTML. The options that you are trying to select like Mark as Read, Mark as Unread are in li tags. So you need to access them using xpath and then fire click event. Following code works for me for marking first

Re: [Wtr-general] 'getObject' command

2007-03-20 Thread Angrez Singh
:125px class=dropdown *Regards,* *Mathew* * * * * *Ya**ho**o India, EGL, Bangalore – 71, Phone:+91-80-30516346, Mobile:+91-9945849925* -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Angrez Singh *Sent:* Friday, March 16, 2007 6:23 PM

Re: [Wtr-general] 'getObject' command

2007-03-20 Thread Angrez Singh
, Mathew * * *Ya**ho**o India, EGL, Bangalore – 71, Phone:+91-80-30516346, Mobile:+91-9945849925* -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Angrez Singh *Sent:* Tuesday, March 20, 2007 5:08 PM *To:* wtr-general@rubyforge.org *Subject

Re: [Wtr-general] 'getObject' command

2007-03-20 Thread Angrez Singh
*Regards,* *Mathew* *Ya**ho**o India, EGL, Bangalore – 71, Phone:+91-80-30516346, Mobile:+91-9945849925* -- *From:* Angrez Singh [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, March 20, 2007 5:54 PM *To:* wtr-general@rubyforge.org *Cc:* Mathew Jacob *Subject:* Re: [Wtr

Re: [Wtr-general] Difference in $browser.text

2007-03-19 Thread Angrez Singh
Hi, The text method has been corrected. It will be available in the next release. Regards, Angrez On 3/19/07, Paul Rogers [EMAIL PROTECTED] wrote: Firewatir is using an incorrect method for text. I sent the fix on, but I guess there has been no new release since. I cant rememeber what I had

Re: [Wtr-general] 'getObject' command

2007-03-16 Thread Angrez Singh
Hi, Can you be more specific like what kind of object is it? Whats the HTML of the page? etc etc. The information you provided is not sufficient enough for anyone to be able to help you. Regards, Angrez On 3/16/07, Mathew Jacob [EMAIL PROTECTED] wrote: There is one object in browser page.

Re: [Wtr-general] How to Pass values from Excel into variables in Watir ?

2007-03-04 Thread Angrez Singh
Hi Charley, I'll add this to FAQ along with the code snippet. Regards, Angrez On 3/2/07, Charley Baker [EMAIL PROTECTED] wrote: Hey Angrez, I'd be more than happy if you were to add this to the FAQ. -Charley On 3/2/07, Angrez Singh [EMAIL PROTECTED] wrote: Hi, This question has

Re: [Wtr-general] How to Pass values from Excel into variables in Watir ?

2007-03-02 Thread Angrez Singh
Hi, This question has been asked couple of times in this list. You can search the archives for the answers/code snippets etc. Bret: I think we should add this to FAQ page. Shall I update the FAQ page? Regards, Angrez On 3/2/07, swarna latha [EMAIL PROTECTED] wrote: How can I achieve this?

Re: [Wtr-general] Installing FireWatir on Intel Mac OS X Tiger (Intel)

2007-02-26 Thread Angrez Singh
Hi Christopher, I appreciate your efforts to test FireWatir on Mac. I am still not able to get why it is not working, if you are able to connect to JSSh? Do you get any errors on JavaScript console of Firefox because as per testing with Dave Hoover the xpi was not getting installed properly on

Re: [Wtr-general] while not exists does not work in Firewatir?

2007-02-13 Thread Angrez Singh
Hi Steven, I am not sure either... Do you have a PayPal account? No, I don't have a PayPal account. Regards, Angrez ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] while not exists does not work in Firewatir?

2007-02-12 Thread Angrez Singh
Hi Steven, while not ($browser.link(:text,Withdraw).exists?) sleep 1 $browser.reload() end 1.) Is there a better way for me to do this? I am not sure why you are getting the text of old screen. 2.) Since Firewatir uses .reload and Watir uses .refresh, how

Re: [Wtr-general] while not exists does not work in Firewatir?

2007-02-06 Thread Angrez Singh
Hi Steven, I checked it again. :text attribute is supported by link element. You can access link element using :text. Please refer to the unit tests for more details. If it still doesn't work out, you can post the HTML and FireWatir code here. Regards, Angrez On 2/6/07, Paul Carvalho [EMAIL

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

2007-02-06 Thread Angrez Singh
Hi Suman, I could reach the textarea successfully but am still getting the same error - Ok The error you are getting is related to frames ... could you just check it once again? W, [05-Feb-2007 10:52:14#3200] WARN -- : runtime error in wait W, [05-Feb-2007 10:52:18#3200] WARN -- :

Re: [Wtr-general] while not exists does not work in Firewatir?

2007-02-05 Thread Angrez Singh
Hi Steven, I'll look into this and let you know. Regards, Angrez On 2/5/07, steven [EMAIL PROTECTED] wrote: The following code only seems to work if $browser = ie.new, and not firefox.new (i.e. with Firewatir). Am I missing something or is this a known issue? while not

Re: [Wtr-general] while not exists does not work in Firewatir?

2007-02-05 Thread Angrez Singh
Hi Steven, Could you please log this issue in the Firewatir issue tracker at http://code.google.com/p/firewatir/ Regards, Angrez On 2/5/07, Angrez Singh [EMAIL PROTECTED] wrote: Hi Steven, I'll look into this and let you know. Regards, Angrez On 2/5/07, steven [EMAIL PROTECTED] wrote

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-23 Thread Angrez Singh
Hi Jason, Currently Watir and FireWatir are two different projects. You need to download two separate packages in case you want your test cases to run both on IE and Firefox. As FireWatir is written using Watir code base 1.4.1, so there would be very few changes that are required to your test

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-18 Thread Angrez Singh
Hi Bach, The method for finding the element initially worked for Absolute path but while implementing it for forms i got into trouble. So its like this: Whatever HTML you see in Firefox browser will be used for identifying the element. In case you want it to work both with WATiR and FireWatir

[Wtr-general] FireWatir version 1.0.1 released

2007-01-17 Thread Angrez Singh
Hi, We have released FireWatir version 1.0.1 For new features and future enhancements please go through release notes at http://code.google.com/p/firewatir/wiki/ReleaseNotes . Main features of this release are: 1. Main concern was speed. It has been improved significantly and now it's

Re: [Wtr-general] FireWatir version 1.0.1 released

2007-01-17 Thread Angrez Singh
to prevent popups - I'll try and find out Paul - Original Message - *From:* Angrez Singh [EMAIL PROTECTED] *To:* wtr-general@rubyforge.org ; [EMAIL PROTECTED] *Sent:* Wednesday, January 17, 2007 6:15 AM *Subject:* [Wtr-general] FireWatir version 1.0.1 released Hi, We have

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-14 Thread Angrez Singh
Hi Bach, Did you tried the latest gem that is there on the code.google.com. It has support for frames. The syntax that you are using is correct. Could you let me what errors you get or it simply doesn't work? Also try using the latest gem from code.google.com. Regards, Angrez On 1/12/07,

Re: [Wtr-general] Any function for getting random values

2007-01-12 Thread Angrez Singh
Hi Sarita, Its really simple to understand. I created an array of upper and lower case alphabets. Now random number generator takes only interger. So I generate random numbers between 0 to the lenght of the array created above and then choose the character at that index in the array and push it

Re: [Wtr-general] Error with file_field in a modal window (using

2007-01-11 Thread Angrez Singh
Hi Bret, I'll go ahead with using rubyw and will make the changes to code. Regards, Angrez On 1/11/07, Bret Pettichord [EMAIL PROTECTED] wrote: Angrez Singh wrote: I would like to add something here. 1. In the file 'winClicker.rb' and method 'clickJSDialog_NewProcess()' myapp

Re: [Wtr-general] Any function for getting random values

2007-01-11 Thread Angrez Singh
Hi Sarita, You can use rand(int) where integer specifies the range. For eg: rand(100) will generate random numbers between 0 to 100. For more info: http://www.rubycentral.com/ref/ref_m_kernel.html#rand Regards, Angerz On 1/12/07, sarita [EMAIL PROTECTED] wrote: Is there any function

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-11 Thread Angrez Singh
Hi Bach, Could you please let me know the scripts or the statements that failed? Regards, Angrez On 1/11/07, Bach Le [EMAIL PROTECTED] wrote: Hi Angrez, I did not have any problems installing FireWatir. I followed the installation guide at http://code.google.com/p/firewatir/ and it

Re: [Wtr-general] Any function for getting random values

2007-01-11 Thread Angrez Singh
Hi Sarita, chars = (a..z).to_a + (A..Z).to_a random_string = 1.upto(5) { |i| random_string chars[rand(chars.length - 1)] } puts random_string This will generate random string of 5 chars in length. To generate large string change 5 to whatever length you want. The generated string will contain

Re: [Wtr-general] Error with file_field in a modal window (using 1.8.2 / 1.5.1.1127 )

2007-01-10 Thread Angrez Singh
Hi John, You can manually install AutoIt dll using regsvr32 command. Regards, Angrez On 1/10/07, John Lolis [EMAIL PROTECTED] wrote: Having some problems using file_field in a modal window. Like the subject says i do have 1.8.2 installed (just installed it) and Watir 1.5.1.1127(from the

Re: [Wtr-general] Error with file_field in a modal window (using

2007-01-10 Thread Angrez Singh
Hi Bret, I would like to add something here. 1. In the file 'winClicker.rb' and method 'clickJSDialog_NewProcess()' myapp = [EMAIL PROTECTED]/clickJSDialog.rb #{button} winsystem( start #{myapp}) Now this thing will not work if user has configured to open the files with '.rb' extension

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-10 Thread Angrez Singh
Hi, Yeah we have been working on improving the performance of FireWatir for last few months. The performance has been improved significantly and it runs faster than IE on windows. FireWatir has been tested just on Windows with different Firefox versions like 1.5, 1.5.0.4, 1.5.0.7 , 2.0 and

Re: [Wtr-general] assertion on the color of the row of a table

2007-01-03 Thread Angrez Singh
Hi Ajitesh, If you have HTML like this: table tr td bgcolor=red text /td /tr /table Then you can directly use the method attribute_value to get the value for bgcolor like this: ie.table(:index, 1)[1][1].attribute_value(bgcolor) Regards, Angrez

Re: [Wtr-general] Image Uploading Problem....

2007-01-02 Thread Angrez Singh
Hi san, Try the following with watir 1.4 ie.file_field(:name, file1).set(\c:\\Program Files\\input.txt\) Try appending double quotes to the name of the file. Regards, Angrez On 1/3/07, san [EMAIL PROTECTED] wrote: I'm with watir 1.4 May Be Thats The Reason That ie.file_field(:name,

Re: [Wtr-general] Image Uploading Problem....

2006-12-29 Thread Angrez Singh
Hi, I too face the same problem with Watir 1.4.1 while running the unit tests; if the installation directory contains a space in the folder name the upload simply doesn't work. I don't know if it is solved or not. The only way is to remove the space from your folder name. Or try a path with no

Re: [Wtr-general] Image Uploading Problem....

2006-12-29 Thread Angrez Singh
Hi san, Which watir version are using? It works for me on watir-1.5.1.1100. I tried the following: ie.file_field(:name, file1).click_no_wait ie.file_field(:name, file1).set(c:\\Program Files\\input.txt) Regards, Angrez On 12/29/06, Angrez Singh [EMAIL PROTECTED] wrote: Hi san, Can you try

Re: [Wtr-general] Image Uploading Problem....

2006-12-29 Thread Angrez Singh
Hi san, Can you try adding double quotes to the file path like this: ie.file_field(:id, onetidIOFile).set(\c:\new folder\abc.jpg\) This should work. Regards, Angrez On 12/29/06, san [EMAIL PROTECTED] wrote: Ok, It Was Not The Double Quotes That Was Causing Problem :) Its The Space In The

Re: [Wtr-general] Is There Any Other Way To Fill A Text Box....?

2006-12-26 Thread Angrez Singh
Hi San, If you don't have any onkeyup and onkeydown events in your text box you can use 'value' property of text box to set the value. For e.g.: ie.text_field(:id, some_id).value = long string Regards, Angrez On 12/26/06, san [EMAIL PROTECTED] wrote: I Want To Fill A Text Box In IE By

Re: [Wtr-general] www.croczilla.com/jssh is down what does it mean ?

2006-12-21 Thread Angrez Singh
Hi, Croczilla site is up again. Following is Alex Fritze reply to the mail: The server zope instance shut itself down and I didn't notice until today, since I'm away on holiday in Mexico at the moment :-) It's fixed now. Regards, Angrez On 12/19/06, Dave Hoover [EMAIL PROTECTED] wrote:

Re: [Wtr-general] Alternative for getElementsByClassName

2006-12-15 Thread Angrez Singh
Hi, You can use elements_by_xpath to get all the elements that map to a given xpath query. element_by_xpath will return you only the first element that map to the xpath query. Regards, Angrez On 12/15/06, Vamsee Krishna M [EMAIL PROTECTED] wrote: Hi, I am using water nightly

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-12-04 Thread Angrez Singh
Hi George, The error that you are facing is because Firefox is not opening a new window; instead its opening a new tab. Or Firefox is blocking the pop up. Run the test alone and you'll be able to find out the cause. Will document this thing so that people do this before running the test cases.

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-12-01 Thread Angrez Singh
Hi Nathan, Could you please let me know what difficulty you faced while installing gem and JSSh xpi. I have used the Firewatir code and I currently own the project at Google. I have tested its installation on 3 - 4 machines and didn't have any problems either with XPI or with the Firewatir gem.

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-12-01 Thread Angrez Singh
Hi Nathan, Get the latest code from the following location. http://firewatir.googlecode.com/svn/trunk/Installation/ It contains installation doc, XPI and Firewatir gem. Let me know the problems you have faced. Its still in development and this will help me in generating the help document or

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Angrez Singh
Hi Nathan, You can get the code for Firewatir for http://www.code.google.com/p/firewatir/trunk using any sub version client. It works with Firefox 1.5 and above versions. The execution speed which was the problem earlier has been resolved. Now execution speed has improved a lot. Comparable to

Re: [Wtr-general] Table has no unique attributes

2006-11-23 Thread Angrez Singh
Hi, I think you can select the element using class attribute. Else you can use xpath for selecting the element using any attribute that uniquely identifies that element on the page. This all is available in watir releases greater than 1.4.1. Regards, Angrez On 11/23/06, Garry West [EMAIL

Re: [Wtr-general] How do you access an image that doesn't have img in the HTML tag?

2006-10-05 Thread Angrez Singh
Hi, Its an image button try this: ie.button(:id, grdCompCodes__ctl2_imgSelect).click - Angrez On 10/5/06, Eva [EMAIL PROTECTED] wrote: Typically image have this tag... img id=Banner1_imgProductName key=LogoWhite.gif src="" alt= border=0 / brbrHere is the html code for the triangle image I'm

Re: [Wtr-general] cell access

2006-09-25 Thread Angrez Singh
Hi,Using latest version of watir you can access span element using:$ie.span(:class, TblHdrTxt)for accessing TH you can use xpath query for getting the element.Regards, AngrezOn 9/22/06, Luke [EMAIL PROTECTED] wrote: Sorry for asking but I can't deal with it, I've got a table on page and I want to

Re: [Wtr-general] Problem with element_by_xpath?

2006-09-20 Thread Angrez Singh
PROTECTED] [mailto:[EMAIL PROTECTED]] *On Behalf Of *Angrez Singh *Sent:* Monday, September 18, 2006 10:38 PM *To:* wtr-general@rubyforge.org *Subject:* Re: [Wtr-general] Problem with element_by_xpath? Hi Alan, The way you are using XPath query is not the correct way. You can take the help

Re: [Wtr-general] Problem with element_by_xpath?

2006-09-19 Thread Angrez Singh
Hi Alan,The way you are using XPath query is not the correct way. You can take the help of this tutorial to write correct XPath _expression_:http://www.w3schools.com/xpath/default.asp In your case the correct XPath _expression_ would be:element = ie.element_by_xpath(//[EMAIL PROTECTED]'q'])First

Re: [Wtr-general] Problem with element_by_xpath?

2006-09-17 Thread Angrez Singh
Hi Alan,Could you send me the HTML source so that I can have more detailed look into it?Regards,AngrezOn 9/16/06, Alan Ark [EMAIL PROTECTED] wrote: Hi folks. I am having a problem getting element_by_xpath to work cleanly. Windoze XP pro Ruby 1.8.5 – One click installer.

Re: [Wtr-general] Paramatrization of the data in WATIR

2006-09-15 Thread Angrez Singh
Hi Sanjay,Have a look at this link which tells how you can use excel object in Ruby.http://www.rubycentral.com/book/win32.html- Angrez On 9/15/06, Sanjay kumar Rai [EMAIL PROTECTED] wrote: Hi, We are using watir in our project, and we want to do the Parameterization for few things in

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Angrez Singh
Hi Bret,I agree that the bug was related to 'to_s' method but this method internally calls 'text' method which was the source of error that I have logged.Thanks for pointing to the URL on 'openqa'.Regards, AngrezOn 9/15/06, Bret Pettichord [EMAIL PROTECTED] wrote: Angrez,I'm pretty sure that the

  1   2   >