[wtr-general] Re: whether the frame support the XPath or not?
Hi, xpath does't support frames. have a look at below link http://wiki.openqa.org/display/WTR/XPath Thanks, jam On Oct 9, 8:31 am, "bugs apple" <[EMAIL PROTECTED]> wrote: > hi, all > > For my script like this, > > ie.frame(:name,"LeftFrame").text_field(:xpath,"//[EMAIL > PROTECTED]'wiston']/").set("hello") > > it throws error like below, > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/input_elements.rb:6:in > `locate': undefined method `element_by_xpath' for # > (NoMethodError) > from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:53:in > `assert_exists' > from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:288:in > `enabled?' > from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:60:in > `assert_enabled' > from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/input_elements.rb:328:in > `set' > from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/watir/RubyApplication2/lib/main.rb:91 > > whether the frame support the XPath or not? if Yes, how do such a step? --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] problem in clicking span
Hi, Iam having a menu which is getting identified as a link. when I click it iam getting a sub menu. where the submenu items are getting identified as a span. The problem is when i click( iam using ie.span (:text,"span name").click ) nothing happens. Kindly help me in this. Thanks, jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: problem in clicking span
Hi Chen, I got the solution. The html is generated dynamically. I used link(:id,id).fire_event("onmouseover") link(:id,id).fire_event("onclick") this seems to work fine Thanks for your kind assistence. Regards, Jam On Feb 13, 4:43 pm, wesley chen wrote: > Would you please provide more detail html information? > > Thanks. > Wesley Chen. > > On Fri, Feb 13, 2009 at 7:32 PM, jam wrote: > > > Hi, > > > Iam having a menu which is getting identified as a link. when I click > > it iam getting a sub menu. where the submenu items are getting > > identified as a span. The problem is when i click( iam using ie.span > > (:text,"span name").click ) nothing happens. Kindly help me in this. > > > Thanks, > > jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Special Characters
Hi, Iam usingWatir.autoit.Send('username#') when I do this # character is not getting entered. I am using this to handle a authentication popup. kindly help in this. Thanks, Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Special Characters
Hi Bill, I tried in another system its not working even there. Iam entering the '#' in authentication popup(Which is not working). I copied and pasted in my app its fine. Kindly let me know how to solve it. Thanks, Jam On Feb 16, 3:42 pm, Bill Xu wrote: > hi: > I could not reproduce this problem :( (I can entered the "#" properly) > But a good way you can try is copy and past to see whether it could not > past to your program. > Watir.autoit.Send('username#') > > On Mon, Feb 16, 2009 at 6:21 PM, jam wrote: > > > Hi, > > > Iam using Watir.autoit.Send('username#') when I do this > > # character is not getting entered. I am using this to handle a > > authentication popup. kindly help in this. > > > Thanks, > > Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] popup
hallo, I could't require enabled_popup (require 'watir/contrib/ enabled_popup') I am getting an error message < d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from popup.rb:4 > whats wrong here. i am using "Watir 1.6.2". kindly throw some light on it Thanks, jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Radio button
Hi, how to check whether radio button is set or not. I tried with set?. does't work. How to do this? Thanks, Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Radio button
Thanks it works fine. Regards, jam On Feb 17, 12:19 pm, wesley chen wrote: > Why don't you try $ie.radio(...).checked? > > Thanks. > Wesley Chen. > > On Tue, Feb 17, 2009 at 2:44 PM, jam wrote: > > > Hi, > > > how to check whether radio button is set or not. I tried with set?. > > does't work. How to do this? > > > Thanks, > > Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help......trouble with Watir::Waiter.wait_until
Hi Darryl, I dont know wait_until. But try this until(button.Exists?) ie.wait(5) end button.click Let me know whether this meets ur requirement? Thanks, Jam On Feb 18, 6:03 am, "Darryl (gem dandy) Brown" wrote: > Hello all, > > Help...I'm having trouble with "Watir::Waiter.wait_until". My goal is > to wait > until a button is present before clicking it. > > I'm trying replace the sleeps with wait_until. > > 1) This works: > sleep 5 > $ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button(:id, > 'editButton').click > > 2) This doesn't work: > Watir::Waiter.wait_until{$ie.frame(:index, 3).frame(:index, 3).frame > (:index, 1).button(:id, 'editButton').exists?} > $ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button(:id, > 'editButton').click > > Do anyone have any suggestions? Is there a trick to making it work > with a nested button? The portion of the page that contains the button > loads slow sometimes. > > Thanks, > Darryl --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Help in Authentication Popup
Hi, When I start ( $ie=Watir::IE.start("my_url") ) the application iam getting an authentication popup. Iam using the following code below but the popup remains idle.The same code is working when i get authentication popup after i get into the application. Watir.autoit.WinWait('Connect to ') Watir.autoit.Send('username') Watir.autoit.Send('{TAB}') Watir.autoit.Send('password') Watir.autoit.Send('{ENTER}') Note: I had referred http://wiki.openqa.org/display/WTR/Basic+Authentication Thanks, jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Help in Authentication Popup
Hi underke, I tried what u said. But I am getting an error message like "undefined method `IENavigate' for main:Object (NoMethodError)" == require 'watir' $URL = "http://aspire426:5050/default.aspx"; $ie=Watir::IE.new #~ $ie.start($URL) _IENavigate($ie, $URL, 0) == Hi Bill Agee, Even if I put ie.start() in a seperate thread how can i kill the thread when the command ie.start waits forever. I need to kill the command. Any ideas ?? Someone Please help me in this Thanks, Jam On Mar 9, 6:49 pm, "*underke" wrote: > the load of the page waits for the pop-up. > you can use some functions that have the f_wait and set it to 0 to not > let the code wait,.. > > example: > _IENavigate($IE_obj, $URL, 0) --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] autoit
Hi all, When I use the following code iam getting an error message like "undefined method `autoit' for Watir:Module (NoMethodError)". I had register autoit with regsvr32. = Watir.autoit.WinWait('Connect to aspire426') Watir.autoit.Send('+{TAB}') Watir.autoit.Send('aspiresys\veharinarayana') Watir.autoit.Send('{TAB}') Watir.autoit.Send('Samuel_') = Thanks, Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: autoit
Hi, Its already installed.. Thanks, Jam On Mar 9, 11:59 pm, "Darin Duphorn" wrote: > Install auto it. > > -Original Message- > From: watir-general@googlegroups.com > > [mailto:watir-gene...@googlegroups.com] On Behalf Of jam > Sent: Monday, March 09, 2009 1:56 PM > To: Watir General > Subject: [wtr-general] autoit > > Hi all, > When I use the following code iam getting an error message like > "undefined method `autoit' for Watir:Module (NoMethodError)". I had > register autoit with regsvr32. > > = > Watir.autoit.WinWait('Connect to aspire426') > Watir.autoit.Send('+{TAB}') > Watir.autoit.Send('aspiresys\veharinarayana') > Watir.autoit.Send('{TAB}') > Watir.autoit.Send('Samuel_') > = > > Thanks, > Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Dynamic Objects
Hi, I have a web application where the object property changes from time to time. Has anybody encountered this situation and Index should not be used. Please throw some light on this. Thanks, Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Dynamic Objects
Hi Charley, Oh really sorry for not explaining the problem clearly. The application I am dealing here, is an Sharepoint build application (internal). Whatsoever, an application deployed in different environments may have different IDs where the application generates specific part of ID during the page load. I suppose here, the application suffixes a particular value. I fixed it. Thanks, Jam On Apr 2, 1:37 am, Charley Baker wrote: > Re-read your post. Do you find it useful? A hint of your html would be good > and your ruby code. Why it changes from time to time would be helpful as > well. I would assume you're a tester. Is this how you submit bug reports? > I'm sorry to pick on you specifically, certainly not meant just for this > post. Follow the guidelines and be good qa engineers. > > -c > > On Wed, Apr 1, 2009 at 2:20 PM, jam wrote: > > > Hi, > > > I have a web application where the object property changes from time > > to time. Has anybody encountered this situation and Index should not > > be used. Please throw some light on this. > > > Thanks, > > Jam --~--~-~--~~~---~--~~ 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 the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---