[wtr-general] Re: watir-webdriver survey for adding items such as: alert_box, scroll_to, and in_viewable_area?

2011-10-12 Thread Alister Scott
I vote for leaving watir-webdriver simple. If people want these features they can just use qa_robusta, or monkey patch watir-webdriver themselves. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Watir and Ajax requests

2011-10-12 Thread User
In my webapp I have a simple textfield. To this textfield I have a jQuery function which will be always executed on every keyup. With this function there is an Ajax request assigned which loads every time the result of the SQL-Query. My code is equivalent to the code of RailsCasts

Re: [wtr-general] Re: Trying to use SafariWatir and receiving an error when keying value into a text_field

2011-10-12 Thread Željko Filipin
On Tue, Oct 11, 2011 at 10:54 PM, Joe Fl joeflec...@gmail.com wrote: Why is it like that and should I expect more like this? Each watir gem (watir, watir-webdriver, safariwatir...) was developed in isolation, meaning there is no code sharing. That means that the API is not 100% the same. We have

Re: [wtr-general] Watir and Ajax requests

2011-10-12 Thread Željko Filipin
On Wed, Oct 12, 2011 at 7:38 AM, User silvan.hub...@gmail.com wrote: After it should click on a link which is placed on the dynamic content with this code browser.a(:id = link).click. The problem now is that the click event won't be executed. I did not understand what is the problem here.

[wtr-general] Re: Watir and Ajax requests

2011-10-12 Thread Jarmo Pertman
What do you expect when clicking that link and how do you know that it didn't get clicked? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Oct 12, 8:38 am, User silvan.hub...@gmail.com wrote: In my webapp I have a simple textfield. To this textfield I have a jQuery

[wtr-general] Retrieving checkbox values

2011-10-12 Thread Joe Fl
Hi All, I am trying to get the number of checkboxes within a window. I want to get the value of each one without knowing which one I will be using. html fieldset class=theme-options input id=simple_discussion_resource_category_ids_ type=hidden value=

Re: [wtr-general] Retrieving checkbox values

2011-10-12 Thread Željko Filipin
On Wed, Oct 12, 2011 at 3:32 PM, Joe Fl joeflec...@gmail.com wrote: I am trying to get the number of checkboxes within a window. browser.checkboxes.size returns: 1 I want to get the value of each one without knowing which one I will be using. browser.checkboxes.each {|checkbox| puts

[wtr-general] Element not found in cache error in Frames, Watir-webdriver

2011-10-12 Thread Abe Heward
I'm seeing an annoying issue that I suspect has to do with objects inside page frames and Selenium and Watir-Webdriver. I brought up part of it already in this post: https://groups.google.com/d/topic/watir-general/gIgtHbFxfbw/discussion Here's a similar issue: If I reference some text on a

[wtr-general] Firefox not able to open through Watir

2011-10-12 Thread Babu
hi, my code is require 'rubygems' require 'watir' require 'watir-webdriver' require 'watir/browser' include Watir Watir::Browser.default = 'ie' $ie = Watir::Browser.new $ie.goto(www.google.com) it is working fine while opening for IE but when i change to 'ff' or 'firefox' it is not opening at

Re: [wtr-general] Firefox not able to open through Watir

2011-10-12 Thread Rahul Sharma
Why do you have watir and watir-webdriver both? I will try with the following: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.new :firefox On 12 October 2011 16:56, Babu suvodasgu...@gmail.com wrote: hi, my code is require 'rubygems' require 'watir' require

Re: [wtr-general] Retrieving checkbox values

2011-10-12 Thread Joe Fleck
Hi Željko, Thank you for getting me started. I have developed the following code but I an still falling short of getting the value property. lists = $browser.div(:class,'add-themes').lis lists.each do |li| puts chckbx = li.text

[wtr-general] Re: Watir and Ajax requests

2011-10-12 Thread Chuck van der Linden
I see we have this same exact question over on StackOverflow.. http://stackoverflow.com/questions/7722712/watir-and-ajax-requests I vote we deal with the answer over there as that venue is better about being able to format code samples, edit questions and answers, etc. No sense duplicating the

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Babu
i am getting this error C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.7.0/lib/ selenium/webdrive r/firefox/binary.rb:116:in `path': Could not find Firefox binary (os=windows). M ake sure Firefox is installed or set the path manually with Selenium::WebDriver: :Firefox::Binary.path=

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Babu
i got it open. but not able to navigate to google? On Oct 12, 12:00 pm, Rahul Sharma rahulsharma@gmail.com wrote: Why do you have watir and watir-webdriver both? I will try with the following: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.new :firefox On 12

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Babu
able to navigate the diffent site but when i want to get all the text form different HTML tag i need to add require 'watir' which is giving compliation error as C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.3.4/lib/watir- webdriver/vers ion.rb:2: warning: already initialized constant VERSION

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Chuck van der Linden
On Oct 12, 9:00 am, Rahul Sharma rahulsharma@gmail.com wrote: Why do you have watir and watir-webdriver both? I will try with the following: require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.new :firefox Also why oh why do you have include Watir in there? --

[wtr-general] Re: Element not found in cache error in Frames, Watir-webdriver

2011-10-12 Thread Abe Heward
Oops! Chuck, thanks for the reminder about Page Object. I just discovered the source of the problem was that I had two methods with the same name in this page class. Argh! False alarm. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: Retrieving checkbox values

2011-10-12 Thread Joe Fleck
Hi Chuck, Thank you for help. I used the parent. lists = $browser.div(:class,'add-themes').lis numListStr = lists.length lists.each do |li| puts chckbx = li.text davalue = $browser.label(:text, chckbx).parent.checkbox.value puts davalue end I

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Babu
but if i not include watir then how ican get all html tags value from the firefox webpage? On Oct 12, 1:52 pm, Chuck van der Linden sqa...@gmail.com wrote: On Oct 12, 9:00 am, Rahul Sharma rahulsharma@gmail.com wrote: Why do you have watir and watir-webdriver both? I will try with the

[wtr-general] Re: confused with versioning in Watir

2011-10-12 Thread Jarmo
Hi! Try not to reply to me directly, but reply to the watir-general list instead :) And what is exactly showing 1.8.7 for you? What would you expect it to show instead? Jarmo On Wed, Oct 12, 2011 at 6:29 PM, Babu suvodasgu...@gmail.com wrote: i got it...now thanks it is showing the 1.8.7

[wtr-general] Re: Retrieving checkbox values

2011-10-12 Thread Chuck van der Linden
On Oct 12, 12:09 pm, Joe Fleck joeflec...@gmail.com wrote: Hi Chuck, Thank you for help. I used the parent. lists = $browser.div(:class,'add-themes').lis       numListStr = lists.length       lists.each do |li|         puts chckbx = li.text         davalue = $browser.label(:text,

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Chuck van der Linden
On Oct 12, 12:47 pm, Babu suvodasgu...@gmail.com wrote: but if i not include watir then how ican get all html tags value from the firefox webpage? On Oct 12, 1:52 pm, Chuck van der Linden sqa...@gmail.com wrote: Include isn't doing what you think it is. read this:

[wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread Babu
i was wrong.. i mean to say require 'watir' if i don't use this then i can't get all the HTML tags so f i use require 'rubygems' require 'watir-webdriver' browser = Watir::Browser.new :firefox then can i get all links/all tags from the web page? thanks Suvo On Oct 12, 5:23 pm, Chuck van der

Re: [wtr-general] Re: Firefox not able to open through Watir

2011-10-12 Thread bis
yes watir-webdriver is based of of watir you should have access to all the methods supported by elements http://pettichord.com/watirtutorial/docs/watir_cheat_sheet/WTR/Methods%20supported%20by%20Element.html On Wed, Oct 12, 2011 at 9:14 PM, Babu suvodasgu...@gmail.com wrote: i was wrong.. i