Re: [wtr-general] in `gem_original_require': no such file to load -- win32screenshot (MissingSourceFile)

2010-08-25 Thread Arihan
Have you installed gem install win32ole If yes use require 'win32ole' Regards Arihan Sent from my iPhone On 25 Aug 2010, at 12:05, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: Hi All, I am facing the problem while running my script It gives me an error like this C:/Ruby/lib/ruby

[wtr-general] which version of ruby to be installed

2010-08-19 Thread arihan sinha
Dear All, Which version of ruby I need to be installed if I am using window 7 OS.. please refer the exact one http://www.ruby-lang.org/en/downloads/ http://rubyforge.org/frs/?group_id=167 Cheers A -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] `assert_exists': Unable to locate element

2010-08-13 Thread arihan sinha
you have to attach that new windows, do the activities and then close that and come back to your original browser. in my ruby+watir framework I use the below if any new window opens where i need to do anything if attach_url(/url in reg exp/) then enter_text_into_text_field_text(Enter the value

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread arihan sinha
Have you given the correct id name? it seems from html code the id is *cblModules_2* but you have used i* cblModules_0* On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen atbl1...@gmail.com wrote: Hi everyone, I followed a very simple example in Watir tutorial website

Re: [wtr-general] Way to clear the browser cache?

2010-08-09 Thread arihan sinha
pls try this.. and I think it would work.. its working ok for me. def clear_cache_folder() Watir::CookieManager::WatirHelper.deleteSpecialFolderContents(Watir::CookieManager::WatirHelper::COOKIES)

Re: [wtr-general] How to select a item from the dropbox

2010-08-09 Thread arihan sinha
in my Ruby+Watir framework which I've designed , I've created a testbase.rb where I've put the function like below and call this wherever I need it. def select_from_select_list(title,name,value) startAction title, Select from the select list with name' + name + ' and value ' + value + ' if

Re: [wtr-general] Iterate through radio buttons

2010-07-04 Thread arihan sinha
count the no of radio buttons with certain ids first then use the for loop for this On Thu, Jul 1, 2010 at 12:08 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: I am trying to iterate through radio buttons in the page, but I dont want to iterate through all the radios in the page, only those

Re: [wtr-general] AutoItX3 failing on virtual machine when remote desktop window minimized/closed

2010-06-04 Thread arihan sinha
through win32ole. Regards Arihan On Fri, May 21, 2010 at 10:38 PM, koicat pmn...@yahoo.com wrote: Am running ruby and watir 1.6.5 which uses AutoItX3.dll (v. 3.1.1) on a Windows Server 2003 virtual machine accessed from an XP Pro laptop through Remote Desktop. If I run the script and leave

[wtr-general] Re: how ruby interacts with already opened powerpoint

2010-04-16 Thread arihan sinha
Thanks everyone. Its done . I found the solution in the microsoft site. No need to spend time on this. Regards Arihan On Thu, Apr 15, 2010 at 2:59 PM, arihan sinha arihan.si...@googlemail.comwrote: Hi, In my application I've changed the setting so that the powerpoint would be opened without

Re: [wtr-general] Re: file download

2010-04-15 Thread arihan sinha
rather than opening the ppt i should be able to directly count the slides on that ppt. i tried with below code but it seems not working. any thoughts??? ppt = WIN32OLE.new('PowerPoint.Application') ppt.Visible = true slidecount = doc.Slides.Count puts slidecount Regards Arihan On Wed, Apr

[wtr-general] how ruby interacts with already opened powerpoint

2010-04-15 Thread arihan sinha
as a separate ppt file without file download prompt because settings changed. ppt = WIN32OLE.new('PowerPoint.Application') ppt.Visible = true slidecount = * ppt.Presentations*.Slides.Count puts slidecount Regards Arihan -- Before posting, please read http://watir.com/support. In short: search before

Re: [wtr-general] synchronisation in ruby

2010-04-14 Thread arihan sinha
it to the 120 secs and it would be applicable to globally for wait_until method whereever it is called Thanks Arihan On Fri, Apr 9, 2010 at 12:24 PM, arihan sinha arihan.si...@googlemail.comwrote: I am using wait_until and its working fine and it seems the default value is 60 secs. I mean

Re: [wtr-general] Re: file download

2010-04-14 Thread arihan sinha
your main machine. No other solutions so far unfortunately. Jarmo On Apr 13, 5:50 pm, arihan sinha arihan.si...@googlemail.com wrote: Any solution to this problem. any work around etc. Regards Arihan On Fri, Apr 9, 2010 at 4:03 PM, Ethan notet...@gmail.com wrote: When

Re: [wtr-general] file download

2010-04-13 Thread arihan sinha
Any solution to this problem. any work around etc. Regards Arihan On Fri, Apr 9, 2010 at 4:03 PM, Ethan notet...@gmail.com wrote: When the system is locked, windows doesn't send things like keypresses and button presses, as far as I've been able to determine. I know of no workaround

Re: [wtr-general] synchronisation in ruby

2010-04-09 Thread arihan sinha
. there must be something in the library file where we can change. anyone can suggest pls Thanks Arihan On Mon, Mar 29, 2010 at 3:24 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 29, 2010 at 4:22 PM, arihan sinha arihan.si...@googlemail.com wrote: can I use the synchronisation

[wtr-general] file download

2010-04-09 Thread arihan sinha
in our remote build server when this piece of code is running and we just minimise that remote window then it stuck there and not moving further. Thanks Arihan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you

[wtr-general] Test the PDF through Ruby/Watiir

2010-04-09 Thread arihan sinha
Hi, Could you please let me know how to test the pdf through ruby/watir. at present when we click any pdf link in our apps it gets opened in the browser in a separate window and we only verify the url. but can we verify the content as well or something else. Thanks Arihan -- Before posting

Re: [wtr-general] Test the PDF through Ruby/Watiir

2010-04-09 Thread arihan sinha
Is there any way can take the title of the browser I tried with $ie.title but its not working Arihan On Fri, Apr 9, 2010 at 12:40 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 9, 2010 at 1:36 PM, arihan sinha arihan.si...@googlemail.com wrote: Could you please let me

Re: [wtr-general] HP acquires the Watir project, announces Wativ

2010-04-01 Thread arihan sinha
Can any one please confirm that this is the correct news. On Thu, Apr 1, 2010 at 11:19 AM, Melkon, Raffi rmel...@gmail.com wrote: Good luck!!! *From:* watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] *On Behalf Of *Željko Filipin *Sent:* Thursday, April 01, 2010

[wtr-general] synchronisation in ruby

2010-03-29 Thread arihan sinha
Hi , can I use the synchronisation statement in the ruby test rather than sleep statement. I am using some similar kind of code as below where the for loop runs with 0.5 secs gap unless the assert gets passed. once passed then it would come out of the for loop. Any other approach? Any where

Re: [wtr-general] How to save or read a PDF file using PDF toolkit when PDF is embeded in a browser

2010-02-25 Thread arihan sinha
have u tried with reigstry keys because i ve faced this problem while the link triggers the ppt. so by changing the registry key , it would prompt a save/open window or directly open in the new browser etc. On Thu, Feb 25, 2010 at 6:51 PM, bk bkhambadk...@gmail.com wrote: Hello, I'm trying to

[wtr-general] Delete the bulk files with specific extension or specific format.

2010-02-02 Thread arihan sinha
those three files in a single go , then what i need to do. any thoughts? any reg expression kind of things I can use? Thanks Arihan -- 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

Re: [wtr-general] Delete the bulk files with specific extension or specific format.

2010-02-02 Thread arihan sinha
Thanks. Though bit struggled initially but finally able to :) Arihan On Tue, Feb 2, 2010 at 3:47 PM, Charley Baker charley.ba...@gmail.comwrote: Check out the documentation for FileUtils#rm: http://ruby-doc.org/core/classes/FileUtils.html#M004332 You can glob files and pass them to rm

Re: [wtr-general] Re: File Download - Security Warning popup

2010-01-26 Thread Arihan
in my code..doesn't seem to work.. just stalls at this point and doesnt proceed further to click the 'Run' button of the file download - security warning window. any thoughts on this? many thanks.. On Jan 23, 6:19 am, Arihan arihan.si...@googlemail.com wrote: Pls use clicknowait method

Re: [wtr-general] File Download - Security Warning popup

2010-01-23 Thread Arihan
Pls use clicknowait method .. It would work .. Sent from my iPhone On 22 Jan 2010, at 22:53, capri capricorn...@gmail.com wrote: Hi, I tried the below code to identify file download -security warning message using autoit in my watir script. However it does not seem to work. I am trying to

Re: [wtr-general] how to click the open button in a microsoft window

2009-12-08 Thread arihan sinha
Then I think I've to install AutoIt ...rt? On Tue, Dec 8, 2009 at 3:26 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Does this help? http://wiki.openqa.org/display/WTR/File+Downloads Željko -- watir.com - community manager watirpodcast.com - host -- You received this

Re: [wtr-general] Re: how to click the open button in a microsoft window

2009-12-08 Thread arihan sinha
- 100).click $ie.link(:text, Full Text).click $ie.link(:text, PowerPoint Slide Set).click end if you need to run this again and again then manually click the *sign out *link and then *yes sign me out of the nejm button*. Thanks Arihan On Tue, Dec 8, 2009 at 5:05 PM, mohe

[wtr-general] firewatir not able to recognise the text box

2009-10-22 Thread arihan sinha
eclipse ( of course the section in the red is not coming ). Always working ok in IE6.0/IE7.0 any solution to this Thanks arihan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post

[wtr-general] Re: firewatir not able to recognise the text box

2009-10-22 Thread arihan sinha
:in `test_firefox' 1 tests, 0 assertions, 0 failures, 1 errors Please let me know if you need anything else. Thanks Arihan On Thu, Oct 22, 2009 at 1:58 PM, Angrez Singh ang...@gmail.com wrote: Can you post the HTML and your ruby code for the same? On Thu, Oct 22, 2009 at 5:14 PM, arihan sinha

[wtr-general] Re: Disable javascript through ruby/watir

2009-10-06 Thread arihan sinha
Hi All, Is there any option to disable javascript of browser through ruby/watir? Thanks Arihan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir

[wtr-general] Disable javascript through ruby/watir

2009-10-05 Thread arihan
Hi , Can anyone please help me asap that how i would disbale the javascript of the browser through ruby/watir Thanks in advanced. Arihan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group