[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

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

2009-10-22 Thread arihan sinha
Hi All, When i am running the ruby test from eclipse , the text box in the firefox is not getting recognised because of id=advSearchFirstSearchTerm class=adv_searchTerm type=text value= name=firstSearchTerm onfocus=select() style=background: yellow none repeat scroll 0% 0%;

[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

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
j.mohanpra...@gmail.com wrote: Can you try this.? save_dialog.WinWait(File Download,,40) save_dialog.WinActivate(File Download) save_dialog.Send({TAB}) 'Use this if you need to tab. save_dialog.Send({Enter}) On Dec 8, 10:37 am, arihan sinha arihan.si...@googlemail.com wrote: I've

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

2010-02-02 Thread arihan sinha
Hi All, I am trying to delete few files with specific extension ( say x.ppt, y.ppt, z.ppt) or in the format of say J_x.ppt, J_y.ppt, J_z.ppt etc... for a single file deletion , I can use File.delete(C:\Documents and Settings\sinhaa\My Documents\x.ppt) which works fine but if i need to delete all

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

2010-02-02 Thread arihan sinha
. -c On Tue, Feb 2, 2010 at 8:32 AM, arihan sinha arihan.si...@googlemail.comwrote: Hi All, I am trying to delete few files with specific extension ( say x.ppt, y.ppt, z.ppt) or in the format of say J_x.ppt, J_y.ppt, J_z.ppt etc... for a single file deletion , I can use File.delete(C

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] 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] 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

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
Hello All, To handle the download prompt I am using the below code as save_dialog = WIN32OLE.new(AutoItX3.Control) // /// $ie.link(:text, Download images).click_no_wait click_link_text_no_wait(click Link Download images, Download images)

[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] file download

2010-04-13 Thread arihan sinha
for this, and would also be quite interested if anybody else knows one. On Fri, Apr 9, 2010 at 07:33, arihan sinha arihan.si...@googlemail.comwrote: Hello All, To handle the download prompt I am using the below code as save_dialog = WIN32OLE.new(AutoItX3.Control) // /// $ie.link

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] Re: file download

2010-04-15 Thread arihan sinha
14, 2010 at 2:11 PM, Jarmo Pertman jarm...@gmail.com wrote: Only workaround i've used so far is that i've used virtual machine so you can lock 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

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

2010-04-15 Thread arihan sinha
Hi, In my application I've changed the setting so that the powerpoint would be opened without file download prompt. Now I need to focus on that already opened powerpoint and do some testing through ruby.( say count the no of slides) earlier i was saving the powerpoint ( clicking the save

[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] AutoItX3 failing on virtual machine when remote desktop window minimized/closed

2010-06-04 Thread arihan sinha
I've faced this problem before and I came to know that this is not possible as replied by one of the group member.if window is minimised then that window cant be focussed. in my application , there is a link in a page and if you click that the popwerpoint version of the same would be downloaded

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] 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] 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] `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

[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