Re: [wtr-general] Re: Automating websiet implemented using AJAX

2010-11-18 Thread Hrishikesh Bose
Agreed On Fri, Nov 19, 2010 at 4:45 AM, Chuck van der Linden wrote: > Let me add my voice to Dave's here. You need to take this problem to > the devs, and explain your need to have some way to reliably identify > elements on the page. It needs to be something that doesn't get > changed if they

[wtr-general] Re: How to configure rake task to run my tests on IE and firefox without specifying in the test code itself

2010-11-18 Thread Alastair Montgomery
You could read it into a variable from a parameter file then for example use, Watir::Browser.default = browserType On Nov 15, 8:59 pm, Gazi wrote: > Hi, > > I am having some watir tests like below > > require 'rubygems' > require 'watir-webdriver' > require 'test/unit/assertions' > #require

[wtr-general] Creating a class

2010-11-18 Thread Quang
Hi all, This is google_search.rb: -- require "rubygems" require "firewatir" require "test/unit" class Google def initialize Watir::Brows

[wtr-general] Handle Security warining

2010-11-18 Thread Litha K
Hi all, I may be repeating this question regarding pop-ups, but all my searches were in vain, hence apologies. I am using watir-webdriver on a linux box and in one of my make payment flows I am getting a security warning with 'Cancel' and 'Continue' options. How do I click Continue in this instan

[wtr-general] Converting Watir::Waiter.wait_until to element.wait_until

2010-11-18 Thread Alastair Montgomery
Hi, I've just updated the Watir install at our Indian site to 1.6.7 and started seeing the messages about Watir::Waiter being deprecated. I've been able to convert the following format lines from Watir::Waiter.wait_until {$browser.link(:id,checkNode).exists?} to $browser.link(:id,checkNod

[wtr-general] Re: Automating websiet implemented using AJAX

2010-11-18 Thread Chuck van der Linden
Let me add my voice to Dave's here. You need to take this problem to the devs, and explain your need to have some way to reliably identify elements on the page. It needs to be something that doesn't get changed if they re-design the page. ID values work great if they are unique within the page (

[wtr-general] Re: Writing and running WATIR scripts

2010-11-18 Thread Jarmo Pertman
You can write Ruby scripts in any text editor you like. Scite is preferred over regular Notepad because it has a syntax highlighting. But that feature is available for almost any other text editor too like Notepad++, Notepad2, Netbeans, Eclipse and so on. There are many different editors and IDE-s

[wtr-general] Ms Sql reports -changin zoom of page nothing happend

2010-11-18 Thread Danijel
Hi, I'm testing page created with MS sql reports. I have a dropdwon zoom with vaules 10,50,100,150,200,500 [10,50,100,150,200,500].each do |zoom| $ie.select_list(:id, "ctl00_ContentMain_ReportViewer1_ctl01_ctl05_ctl00").set(zoom) end thi si control from web page: fist is zoomed on 10 and

Re: [wtr-general] Re: Excel interface class - does excel actually need to be installed

2010-11-18 Thread Željko Filipin
On Thu, Nov 18, 2010 at 5:01 PM, Dave McNulla wrote: > No, it's genuine. Maybe I get too excited about stupid things, people > think I'm mocking it. ;-) I thought you were concerned about test data being public (and potentially confidential). :) Željko -- Before posting, please read http://wa

[wtr-general] Re: Excel interface class - does excel actually need to be installed

2010-11-18 Thread Dave McNulla
No, it's genuine. Maybe I get too excited about stupid things, people think I'm mocking it. ;-) Dave On Nov 18, 7:49 am, Željko Filipin wrote: > On Thu, Nov 18, 2010 at 4:47 PM, Dave McNulla wrote: > > Able to use google.docs spreadsheets? That's cool, a world-wide > > central repository for t

[wtr-general] Re: Quick Question searching for text with ' in it

2010-11-18 Thread Usman Hussain
Brilliant. its working. Yeah the ! mark is working as well. Thanks alot for the quick patch release. Kind regards, Usman Hussain On Nov 18, 3:25 pm, Jari Bakken wrote: > On Thu, Nov 18, 2010 at 3:10 PM, Usman Hussain > wrote: > > yeah it is a funny one, Its also the same if i am searching for

Re: [wtr-general] Re: Excel interface class - does excel actually need to be installed

2010-11-18 Thread Željko Filipin
On Thu, Nov 18, 2010 at 4:47 PM, Dave McNulla wrote: > Able to use google.docs spreadsheets? That's cool, a world-wide > central repository for test data.I like it. Is this sarcasm? :) Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. w

[wtr-general] Re: Excel interface class - does excel actually need to be installed

2010-11-18 Thread Dave McNulla
Able to use google.docs spreadsheets? That's cool, a world-wide central repository for test data.I like it. Dave On Nov 18, 1:04 am, Željko Filipin wrote: > On Wed, Nov 17, 2010 at 11:10 PM, Dan wrote: > > Hello!  This may be a silly question, but does excel actually need to > > be installed on

[wtr-general] Re: Automating websiet implemented using AJAX

2010-11-18 Thread Dave McNulla
I would advise the team that you are working on about the "testability" of your product. Which is more inconvenient, adding the capability to automate, or running manual tests FOR THE REST OF YOUR LIFE! If you can get the developers to write at least the occasional test, they will want to help you

Re: [wtr-general] Re: Quick Question searching for text with ' in it

2010-11-18 Thread Jari Bakken
On Thu, Nov 18, 2010 at 3:10 PM, Usman Hussain wrote: > yeah it is a funny one, Its also the same if i am searching for text > which has ! within the text as well. > > same error message. > I've fixed the single quote issue and released 0.1.3. I tried with an exlamantion point as well but couldn'

Re: [wtr-general] Re: Ms Sql reports -changin zoom of page nothing happend

2010-11-18 Thread Željko Filipin
I took a look at Danijel's app (via Skype screen sharing), he executed this from IRB: $ie.select_list(:id, "ctl00_ContentMain_ReportViewer1_ctl01_ctl03_ctl00").set("10%") The page zoomed to 10%, but IRB was stuck, it never returned the prompt. My guess is that Watir is waiting for IE to say it is

[wtr-general] Watir Podcast #40: Dave McNulla

2010-11-18 Thread Željko Filipin
I am recording the next podcast with Dave McNulla[1] this Saturday, November 20th, 2pm UTC. If you have a question or two for Dave, post it here. Dave, do not answer to questions here, but on the podcast. :) [1] http://twitter.com/#!/dmcnulla Željko -- watir.com - community manager watirpodcast

[wtr-general] Re: Quick Question searching for text with ' in it

2010-11-18 Thread Usman Hussain
yeah it is a funny one, Its also the same if i am searching for text which has ! within the text as well. same error message. Kind regards, usman hussain On Nov 18, 1:58 pm, Jari Bakken wrote: > On Thu, Nov 18, 2010 at 2:56 PM, Usman Hussain > wrote: > > Hi Guys, > > > really quick question,

Re: [wtr-general] Quick Question searching for text with ' in it

2010-11-18 Thread Jari Bakken
On Thu, Nov 18, 2010 at 2:56 PM, Usman Hussain wrote: > Hi Guys, > > really quick question, > Im using watir-webdriver on a MAC. > > my code is: > @browser.link(:text, "Mystic Meg's Wheel of Destiny").should exist > > But im getting an error saying: The expression is not a legal > expression. > >

[wtr-general] Watir Podcast #39: Jeff Lusenhop on Janova 3/3

2010-11-18 Thread Željko Filipin
The final part of Watir podcast on Janova: http://watirpodcast.com/39-jeff-lusenhop-on-janova-3-3/ Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In sho

[wtr-general] Quick Question searching for text with ' in it

2010-11-18 Thread Usman Hussain
Hi Guys, really quick question, Im using watir-webdriver on a MAC. my code is: @browser.link(:text, "Mystic Meg's Wheel of Destiny").should exist But im getting an error saying: The expression is not a legal expression. I think it is because of the ' symbol. But im unsure of what to do to get i

Re: [wtr-general] Re: Unable to call ruby script multiple times!!

2010-11-18 Thread chethan sarathy
Hi Chuck, Thanks for your eye opening mail, I will change my scripting way. Once again Thanks for your valuable input about ruby scripting. ~Chethan --- On Wed, 17/11/10, Chuck van der Linden wrote: From: Chuck van der Linden Subject: [wtr-general] Re: Unable to call ruby script multiple tim

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Hrishikesh Bose
i got some success using index. thanks guys. will update more :) On Thu, Nov 18, 2010 at 4:24 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > http://wiki.openqa.org/display/WTR/Index > > Zeljko > > On Thursday, November 18, 2010, Hrishikesh Bose > wrote: > > how can i use index? > >

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Željko Filipin
http://wiki.openqa.org/display/WTR/Index Zeljko On Thursday, November 18, 2010, Hrishikesh Bose wrote: > how can i use index? > > On Thu, Nov 18, 2010 at 3:35 PM, Hrishikesh Bose > wrote: > > i tried - other attribute which i got is tab index which is 0 for each input > field. Don't have name

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Hrishikesh Bose
how can i use index? On Thu, Nov 18, 2010 at 3:35 PM, Hrishikesh Bose wrote: > i tried - other attribute which i got is tab index which is 0 for each > input field. Don't have name field. > > > > > On Thu, Nov 18, 2010 at 3:30 PM, Prajakta Jadhav < > jadhav.praja...@gmail.com> wrote: > >> Try usi

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Hrishikesh Bose
i tried - other attribute which i got is tab index which is 0 for each input field. Don't have name field. On Thu, Nov 18, 2010 at 3:30 PM, Prajakta Jadhav wrote: > Try using some other element property like name or value instead of id. You > could find their values using developer's tool bar.

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Željko Filipin
2010/11/18 Hrishikesh Bose > so the first time i select the text field i get > Once the page is reloaded i get You should figure out what is common between them. In this case I would use: browser.text_field(:id => /c_/).set "name" Or, as Prajakta said, use another attribute. Željko -- Befo

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Prajakta Jadhav
Try using some other element property like name or value instead of id. You could find their values using developer's tool bar. 2010/11/18 Hrishikesh Bose > may be i am new to the Watir. > > The problem i am facing is as following. > > > . i need to automate a use case which is like a new windo

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Hrishikesh Bose
may be i am new to the Watir. The problem i am facing is as following. . i need to automate a use case which is like a new window. i provide name and password and click save to create a new user. Now the Name and Password are text fields. I can get the ids using developer tool bar. but the next

Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Željko Filipin
On Thu, Nov 18, 2010 at 10:32 AM, Hrishikesh Bose wrote: > so got this questions on whether we can use WATIR to automate AJAX web pages. You should be able to do it. Most of us automate web applications with a lot of javascript. Let us know if you have a problem with someting. Željko -- watir.co

[wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Hrishikesh Bose
hello guys - i just tried to find out on how i can automate an AJAX webpage using WATIR. didnt found something good. so got this questions on whether we can use WATIR to automate AJAX web pages. need help. thanks in advance hrishikesh -- Before posting, please read http://watir.com/support. In

[wtr-general] Re: Javascript pop uo using firewatir

2010-11-18 Thread Željko Filipin
On Thu, Nov 18, 2010 at 8:21 AM, Amit Kulkarni wrote: > On delete action popup is there which onclick it shows a pop up box along with two buttons i.e. Ok and Cancel Maybe something from here could help you: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/JavaScript

Re: [wtr-general] Excel interface class - does excel actually need to be installed

2010-11-18 Thread Željko Filipin
On Wed, Nov 17, 2010 at 11:10 PM, Dan wrote: > Hello! This may be a silly question, but does excel actually need to > be installed on the machine to be able to read from an excel file with > the Excel interface class? Chances are the machines that will be > running my scripts won't have Excel in

[wtr-general] Re: Writing and running WATIR scripts

2010-11-18 Thread Dave McNulla
I do not remember a scite editor being installed when I installed Ruby 1.9.2 either, but did get it with 1.8.6 and 1.8.7. It was a convenient "starter" IDE for me, but it's not necessary. I would advise learning ruby/watir in IRB - it's so interactive and easy to try over and over until you get it