[wtr-general] Re: click method with list items

2009-07-20 Thread basu
Used this, its working now $browser.ul(:id, "cntList").li(:index, 1).link(:text, "World Wide").focus() $browser.ul(:id, "cntList").li(:index, 1).link(:text, "World Wide").fire_event('onClick') On Jul 21, 11:32 am, kiran yajamanyam wrote: > Hi Friends, > > Even i face this issue many times for m

[wtr-general] Dheeraj Gambhir wants to chat

2009-07-20 Thread Dheeraj Gambhir
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- Dheeraj Gambhir wants to stay in

[wtr-general] Re: click method with list items

2009-07-20 Thread kiran yajamanyam
Hi Friends, Even i face this issue many times for many buttons. But i use mouse_click method. Unfortunately, mouse_click is not working fine for firefox browser and i have got struck up with this issue and there is no other work around for me. Is there any solution for this? Regards, Kinnu On T

[wtr-general] Re: click method with list items

2009-07-20 Thread Basavana Gowda K S
Hi Ivan, That option is also not working On Tue, Jul 21, 2009 at 11:48 AM, Ivan Kabluchkov wrote: > > Try to raise javascript event > > $browser.ul(:id, "cntList").li(:index, 1).link(:text, "World > Wide").fire_event('onClick') > > On 21 июл, 09:59, basu wrote: > > Hi, > > I have list structure

[wtr-general] Re: click method with list items

2009-07-20 Thread Ivan Kabluchkov
Try to raise javascript event $browser.ul(:id, "cntList").li(:index, 1).link(:text, "World Wide").fire_event('onClick') On 21 июл, 09:59, basu wrote: > Hi, > I have list structure like this, > > > > http://www.winamp.com/music/top-artists/all/today"; > onclick="TopArtist.selectitem(id)">World

[wtr-general] Re: customize xml generated by ci_reports

2009-07-20 Thread Tony
Hi Dylan, Ooops sorry missed that... Basically this class just gives some short cut methods to access the class variables from ReportManager. Code in file ClassAttr.rb class Class def class_attr_reader(*symbols) symbols.each do |symbol| self.class

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Tony
Hi Dheeraj, Forgot to add the outval variable before the begin in wait. Have updated the code, please try changing the code again. Let me know if you run into any other issues. Thanks, Tony On Jul 21, 9:51 am, Dheeraj Gambhir wrote: > Hi, > > I tried my code by replacing goto, wait in in > C:\

[wtr-general] click method with list items

2009-07-20 Thread basu
Hi, I have list structure like this, http://www.winamp.com/music/top-artists/all/today"; onclick="TopArtist.selectitem(id)">World Wide http://www.winamp.com/music/top-artists/argentina"; onclick="TopArtist.selectitem(id)"> Argentina $browser.ul(:id, "cntList").lis.each{|list_item|

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
Hi, I tried my code by replacing goto, wait in in C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb file with the code given in http://wiki.openqa.org/display/WTR/Security+Alerts, but it is giving the following error now: C:\Program Files\Watir\examples>ruby finalcount.rb Launched

[wtr-general] Re: customize xml generated by ci_reports

2009-07-20 Thread Dylan
Thanks Tony! I have tried using your file and I'm receiving this error: custom_require.rb:31:in 'gem_original_require': no such file to load -- ClassAttr (LoadError) The error occurs on the line with "require 'ClassAttr'". Am I missing some file? Thanks again, I appreciate the help! -Dylan On J

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Tony
Hi Dheeraj, Modified http://wiki.openqa.org/display/WTR/Security+Alerts to handle these popups. Note: you would have to change the code in ie_class.rb files for this. No changes or extra steps is required in your testcase. The popups yes button will be clicked automatically. Thanks, Tony --~--~-

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
I tried this also, but all in vain: require 'rubygems' require 'watir' require 'win32ole' require 'watir/ie' require 'watir\contrib\enabled_popup' def startClicker(button , waitTime= 9, user_input=Yes) hwnd = $ie.enabled_popup(waitTime) if(hwnd) w = WinClicker.new if(user_input)

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
It is not working yet, i have tried all the given below methods in code: ** require 'rubygems' require 'watir' require 'win32ole' ie = Watir::IE.new ie.goto('http://qa2.mlb.com/enterworkflow.do? flowId=sb_purchase&brand=cle_scoreboard&wfClub=cle') puts "Secu

[wtr-general] Re: problem in jssh

2009-07-20 Thread kiran yajamanyam
Hi All, I tried the same steps which u people have provided and still i am facing the same problem. I have tried in two different machines and facing the same problem. I am using Firefox 3.0.11 jssh-0.9 Regards, Kiran Y On Sat, Jul 18, 2009 at 11:46 PM, venkatesh kumar wrot

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Željko Filipin
On Mon, Jul 20, 2009 at 11:34 AM, Dheeraj Gambhir < checktestingthi...@gmail.com> wrote: > whenever i goto the login > page it throws me a security alert popup Take a look: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/Security+Alerts Željko -- http://watirpodcast

[wtr-general] Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
I am automating ssl certified site.(https) whenever i goto the login page it throws me a security alert popup, i am not able to close that popup using watir. how can i control that , can you please help me, right now i am using watir1.6.2 ruby 1.8.6 -26 Thanks in advance :) --~--~-~--~--

[wtr-general] Re: Find the parent window of a javascript prompt

2009-07-20 Thread Tony
Hi Siva, Not possible to get the popup text through the autoit or win32ole. You can however get the text through from the dialog box dom using javascript. Thanks, Tony On Jul 19, 8:16 pm, sHiVa wrote: > Tony, > Are you able to get the popup text using Autoit when the popup is > resulted from F

[wtr-general] Re: How to simulate right mouse action

2009-07-20 Thread kiran yajamanyam
Hi Friends, I want to use this method for Firefox. I have got some code for left_edge and top_edge but I want code for top_edge_absolute and left_edge_absolute Can any one help me. Regards, Kinnu 2009/5/27 Jungle_hunter > > > > > On 5月26日, 上午10时50分, sHiVa wrote: > > Hi Hunter, > > > > On whi

[wtr-general] Re: Why it opens two IE windows?

2009-07-20 Thread Wesley Chen
Thank you, Alister. I run in XP professional version 2002 service pack 3. Thanks. Wesley Chen. On Mon, Jul 20, 2009 at 2:37 PM, Alister Scott wrote: > > Are you running Vista? > If so, try this: > > http://wiki.openqa.org/display/WTR/FAQ#FAQ-WhatshouldIdoiftwobrowserwindowsappearwhenrunningates