[wtr-general] Re: taza no longer works after upgrade to Ruby 1.8.7/ Watir 1.8.0

2011-03-23 Thread Chuck van der Linden
Try kicking out the current activesupport and installing an older version of it. I'm using the Watircraft framework, and when installing on a Server2008R2 box (very much like Win7) I got similar errors when trying to use the older ruby 1.8.6 where it wanted to run nmake etc I ended up having to

[wtr-general] Re: Measure response time with fireEvent(onmouseup)

2011-03-21 Thread Chuck van der Linden
are from httpwatch tool. As Chuck suggested, I will dig in and try to use waiting option. Thanks, On Mar 17, 10:17 pm, Chuck van der Linden sqa...@gmail.com wrote: I think the issue is that since it's being invoked by client-side code, watir doesn't really know to expect a page load

[wtr-general] Re: Click on links on a dynamic pane

2011-03-21 Thread Chuck van der Linden
Credit goes to Bret and Brian for choosing Ruby as the language when they first set about to create watir.. However the .parent method is purely a Watir thing, I don't know who came up with the idea of doing that, but it's a GREAT addition to Watir. and just call me Chuck ('van der Linden

[wtr-general] Re: Measure response time with fireEvent(onmouseup)

2011-03-17 Thread Chuck van der Linden
I think the issue is that since it's being invoked by client-side code, watir doesn't really know to expect a page load at that time Have you by any chance tried to click that div as if it was a button, using the ID to identify it? Since I see some ajax in there, I guess the first question is,

[wtr-general] Re: Click on links on a dynamic pane

2011-03-17 Thread Chuck van der Linden
Can you show me the code for the click? from the looks of the dom, the original link you click to see the sub- menu, and those menu items, are all 'inside' that table row. I suspect that the challeng is that there are other similar hidden links (at that point) on each of the other table rows,

[wtr-general] Re: Click on the link in a cell of a table

2011-03-17 Thread Chuck van der Linden
On Mar 17, 5:41 am, Aravind aravindredd...@gmail.com wrote: thanks for the suggestion and this is the code i used def clickaction(table_id)   table = $b.table(:id,table_id)   if table.row_count 2     for i in 3..table.row_count - 1       if table[i][8].text == APV          

[wtr-general] Re: Click on the link in a cell of a table

2011-03-16 Thread Chuck van der Linden
Care to share it with us so other users can benefit from it? On Mar 16, 8:17 am, Aravind aravindredd...@gmail.com wrote: Hi Thanks for the reply. I got the solution for that. thanks aravind On Wed, Mar 16, 2011 at 7:04 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On

[wtr-general] Re: click Div button

2011-03-16 Thread Chuck van der Linden
).fireEvent(onmouseup) Regards, vin On Mar 3, 11:14 pm, Chuck van der Linden sqa...@gmail.com wrote: 'access'  appears to be text..  do you see it on the page as text next to a 'FolderOpen image?  Is that text unique on the screen, or does it appear in other places as well

[wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2011-03-16 Thread Chuck van der Linden
On Mar 16, 3:55 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: http://stackoverflow.com/questions/5317433/ruby-stops-after-first-loop DO NOT assist this guy. a) what he's trying to do specifically violates the terms of service for the site he linked in his code. (cramster) b) what

[wtr-general] Re: click Div button

2011-03-16 Thread Chuck van der Linden
working with fireevent.  ie.div(:id, configure_access_left).fireEvent(onmouseup) Regards, vin On Mar 3, 11:14 pm, Chuck van der Linden sqa...@gmail.com wrote: 'access'  appears to be text..  do you see it on the page as text next to a 'FolderOpen image?  Is that text unique on the screen

[wtr-general] Re: How to click a button which is having all the property dynamic ?

2011-03-15 Thread Chuck van der Linden
On Mar 15, 12:29 am, meaculpa harismah...@gmail.com wrote: For a MNC, that guy was into QTP, in QTP we can identify it with rpository. and how exactly would you do that if in truth every property that could used to identify the thing is changing? The QTP repository is not PFM (pure freakin

[wtr-general] Re: Re-Usable Load Testing with Watir : Optimize loadtester.rb

2011-03-15 Thread Chuck van der Linden
an undiscovered sweet spot somewhere there where the cost per vuser shifts in favour of protocol level (when using commercial licensed tools) testing. Cheers, Tim @90ktshttps://github.com/90kts/watirgrid/blob/master/EXAMPLES.rdoc On Tue, Mar 15, 2011 at 4:21 AM, Chuck van der Linden sqa

[wtr-general] Re: Re-Usable Load Testing with Watir : Optimize loadtester.rb

2011-03-14 Thread Chuck van der Linden
Generally speaking, in order to handle a large pool of threads and be able to scale the load, most loadtesting is done at the protocol (HTTP) level, not using full blown browser based clients. Since most load is not from simple page hits against static or cached pages, you need to actually be

[wtr-general] Re: error message

2011-03-14 Thread Chuck van der Linden
I agree. The other possibility is that the server is sending different HTML, perhap using an older technique like frames etc, to do something that is done another way in FF, but can't be done that way in IE, because IE doesn't support it. You might want to view source, and save it for both

[wtr-general] Re: How to Trace the change in a field

2011-03-08 Thread Chuck van der Linden
:/Documents and Settings/tcsadmin/Desktop/ check_changecounter.rb:9 On Mar 4, 10:23 pm, Chuck van der Linden sqa...@gmail.com wrote: If I read you correctly, the challenge is get the contents of the second cell on the table row where the first cell is 'change counter' is that right

[wtr-general] Re: can't correctly excute onchange event when I use select_list#select

2011-03-04 Thread Chuck van der Linden
operating select tag. Thanks. 在 Fri, 04 Mar 2011 02:29:54 +0800,Chuck van der Linden sqa...@gmail.com 写道: have you tried scripting a firing of the onchange event against the element after you have done the select? browser.frame(mainFrame).select_list(:name,servname).fire_event

[wtr-general] Re: Need support in using POST method in RUBY

2011-03-04 Thread Chuck van der Linden
Monitoring HTTP traffic between the client and server is a completely separate issue, and yes there are tools for that (including Fiddler2 on windows), but I don't think that's what the OP was asking about. On Mar 3, 2:28 am, Danijel danijel.vuko...@gmail.com wrote: In one way you can use

[wtr-general] Re: click Div button

2011-03-03 Thread Chuck van der Linden
'access' appears to be text.. do you see it on the page as text next to a 'FolderOpen image? Is that text unique on the screen, or does it appear in other places as well? The problem we are faced with here is that there are several overlapping HTML elements here, and none of the HTML types

[wtr-general] Re: can't correctly excute onchange event when I use select_list#select

2011-03-03 Thread Chuck van der Linden
have you tried scripting a firing of the onchange event against the element after you have done the select? browser.frame(mainFrame).select_list(:name,servname).fire_event(onchange) On Mar 2, 6:52 pm, WinDy lyfi2...@sina.com wrote: I have a web page to test. The page like this: select

[wtr-general] Re: watir-webdriver: undefined method `status_code' for #Watir::Browser:0x42840c0 (NoMethodError)

2011-03-02 Thread Chuck van der Linden
try this manually with IRB and see if the browser object still seems to be connected to the actual web browser after you've gone to the apple page. My bet is that that the two pages are seen as being in different security contexts (one is perhaps 'trusted') and that's causing an issue with the

[wtr-general] Re: Need support in using POST method in RUBY

2011-03-02 Thread Chuck van der Linden
When you asked about this sort of thing in this thread http://groups.google.com/group/watir-general/browse_thread/thread/aa2701aa919b948b I said to you: If your question is how to use ruby to do HTTP requests directly (as opposed to using Watir to drive a web-browser that sends/receives those

[wtr-general] Re: Can't find an element in a page with javascript:gotolink

2011-03-02 Thread Chuck van der Linden
generally I find xpath useful only when I can't find an elegant way to identify and element using watir's normal means. it's harder to read code using it (to tell what you are doing) and it's slower, so it's not my first line of advance. On Mar 1, 12:06 pm, Michael Sillers msill...@pollydude.com

[wtr-general] Re: [ANN]VTD-XML 2.10

2011-03-01 Thread Chuck van der Linden
Concur with Jarmo. as further proof, I challenge the OP to respond to this thread to prove he's not just a drive-by spammer who isn't even monitoring the forums to which he posts his announcements. If we don't see a response in a day or two, I nominate nuking the thread and banning the poster.

[wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2011-03-01 Thread Chuck van der Linden
On Jan 13, 2:00 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: http://stackoverflow.com/questions/4675500/if-there-are-two-links-wit... answered -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: Need to get/retrieve value

2011-02-28 Thread Chuck van der Linden
Feel free to use any or all of that in a FAQ entry on 'captcha' stuff. as they come more and more into prevalence I suspect we're going to want one. On Feb 25, 3:24 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Feb 25, 2011 at 9:12 AM, Chuck van der Linden sqa...@gmail.com

[wtr-general] Re: Can Watir support PHP based technology?

2011-02-28 Thread Chuck van der Linden
On Feb 27, 8:44 pm, Ashu ashay.n...@gmail.com wrote: Yes, as the script is running on the IP address, so a webpage opens that is in PHP. Watir can detect the text that is written in td[2] xpath - /html/body/div/div/div[5]/div/div[7]/table/tbody/tr/td[2] But, There is an image file in the

[wtr-general] Re: Need to get/retrieve value

2011-02-25 Thread Chuck van der Linden
and was tempted to put more thought into it. Maybe next time =) Cheers, Tim On Fri, Feb 25, 2011 at 6:23 PM, Chuck van der Linden sqa...@gmail.com wrote: Tim, I'm not saying he's a spammer..  (but one could be watching) I'm applying the LART with such vigor because he's been told

[wtr-general] Re: Can Watir support PHP based technology?

2011-02-24 Thread Chuck van der Linden
Like Z I think I'm perplexed here as to exactly what it is you are wanting to do. If the problem is elements not found on the page, and it works 'manually' from an IRB prompt, but not when you run the script, you might need to insert a few sleep statements here and there in your code to allow

[wtr-general] Re: Problem in installing Flash Watir

2011-02-24 Thread Chuck van der Linden
On Feb 24, 1:34 am, Aditya vaditya2...@gmail.com wrote: Any specific process to install the specific gem. How do i? the same way you install any gem. http://lmgtfy.com/?q=how+to+install+ruby+gems -- Before posting, please read http://watir.com/support. In short: search before you ask, be

[wtr-general] Re: EXCEL how to array only one value from a range when A=B

2011-02-24 Thread Chuck van der Linden
Yes as others have pointed out, theres no watir in anythng you provided, what you have are questions regarding how to use ruby.. a few small tips in terms of (at least from what I've seen) are the ruby way of doing some of the code you have if nu=region This is asking if setting nu equal to

[wtr-general] Re: detecting elements of Overlay form in watir

2011-02-24 Thread Chuck van der Linden
As charlie said it's just a div that shows up for a while. if you know the properties of the div then you can check to see if it's there. Likely it's just being switched by some client side javascript from being visible to not being visible. If that's the case, again if you know enough

[wtr-general] Re: Identify Flash Objects - to write

2011-02-24 Thread Chuck van der Linden
learn to assist yourself. http://lmgtfy.com/?q=flash+watir On Feb 24, 4:15 am, V vaditya2...@gmail.com wrote: How do i identify flash objects as my firebug does not display those.Any add-on for flash objects? Say Ex: I opened app. A welcome screen came. Down the line there is I AGREE

[wtr-general] Re: Need to get/retrieve value

2011-02-24 Thread Chuck van der Linden
/ Good luck with that! Cheers, Tim On Wed, Feb 23, 2011 at 8:07 PM, Chuck van der Linden sqa...@gmail.comwrote: THERE IS NO SUCH GEM. NO.  HELL NO. and a Thousand Times I tell you NO. The purpose of a captcha is a challenge to prove that it is a human at the computer

[wtr-general] Re: how to get slectlist box option value

2011-02-24 Thread Chuck van der Linden
On Feb 24, 10:28 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: Hi All, I am facing a problem with watir for list box object. I have to extrach the value of select item in list box instead of text value Like.. select size=1 name=phone_type             option value=- Select One

[wtr-general] Re: Need to get/retrieve value

2011-02-23 Thread Chuck van der Linden
THERE IS NO SUCH GEM. NO. HELL NO. and a Thousand Times I tell you NO. The purpose of a captcha is a challenge to prove that it is a human at the computer, to prevented scripted attacks on the site from spammers and the like. The site cannot tell a scripted interaction from a tester from a

[wtr-general] Re: Need to get/read/retrieve the value

2011-02-23 Thread Chuck van der Linden
You're trying to script against a captcha? LOL. do you understand the phrase 'tilting at windmills'? have fun storming the castle. v On Feb 22, 12:13 am, V vaditya2...@gmail.com wrote: Hi, My Source is : img style=color: Red; height: 60px; width: 165px; border-width: 0px;

[wtr-general] Re: Need Help on Span ......Filipin

2011-02-23 Thread Chuck van der Linden
not without a better example of the source for the page you are trying to automate and exactly what it is you are trying to do On Feb 21, 6:23 am, mike_sukhi sukhija...@gmail.com wrote: ANY BODY CAN HELP PLZ On Feb 20, 9:41 pm, mike_sukhi sukhija...@gmail.com wrote: ok I found a example

[wtr-general] Re: click Div button

2011-02-18 Thread Chuck van der Linden
when interacting manually how do you know what to click on? ae you looking for the text? if so, maybe you could use a combination of the class and the text to identify the div? also there are three divs in your code below, but you do not indicae which of them you are trying to click on, which

[wtr-general] Re: Unable to locate element

2011-02-18 Thread Chuck van der Linden
are there Frames on the page perhaps? On Feb 17, 11:41 pm, Ashu ashay.n...@gmail.com wrote: On trying the above line of code irb displays irb(main):045:0 ie.image(:alt, 'Open SDP file').wait_until_present Watir::Exception::UnknownObjectException: Unable to locate element, using :alt,Open SDP

[wtr-general] DEP (Data Execution Protection) crashes in Server 2008R2

2011-02-03 Thread Chuck van der Linden
I've been setting up a VM to do testing on our product and the easiest thing for me to do is to have the automation code running on the same system were we install the product (and database etc). Hence the use of Server2008 as the platform since that is official supported (and I figured would

[wtr-general] Re: Watir 1.7.1 Released

2011-01-20 Thread Chuck van der Linden
can take notes, which you might be planning already. :) Cheers, Charley On Wed, Jan 19, 2011 at 10:16 PM, Chuck van der Linden sqa...@gmail.com wrote: well it's not as if things were working that wonderfully so I'm not too terribly concerned. I made a snapshot of the VM just

[wtr-general] Re: First time Watir User

2011-01-19 Thread Chuck van der Linden
Glad you got it working. You do realize that this is the first time you mentioned you were running on a Mac, despite Z's asking you for details that included your OS. Given most folks here are working on PC's using Windows (or a flavor of Linux) that little detail may be something you need to

[wtr-general] Re: need assistance in error

2011-01-19 Thread Chuck van der Linden
The other thing to be aware of is that with Win7 it helps to run the command line window as an admin (right click and pick run as administrator). This gets around some of the IE cross site scripting security that causes 'churn' of browser objects when the site changes security zones (from

[wtr-general] Re: Watir 1.7.1 issue

2011-01-19 Thread Chuck van der Linden
are you opening up the CMD window you are using 'as administrator' ?? that seems to help immensely with Windows 7 and IE8's propensity to 'churn' the instances of the browser. It also seems (at least to me) to help to set the browser homepage to about:blank, and add that page to the same

[wtr-general] Re: Automating the object with in TD tag

2011-01-19 Thread Chuck van der Linden
if it's an image and it's clickable, you can often access it as a button element. That or look at what element is wrapped around the image. As with almost all questions here, you are going to get the best response if you 1) show us relevent page source. 2) show us the code you have tried so far

[wtr-general] Re: Watir virtual appliances?

2011-01-19 Thread Chuck van der Linden
You really have to wonder how that business model flies.. doesn't seem like it would even come close to paying for the hardware alone, much less license fees for licensed OS's On Jan 13, 11:14 pm, Dave McNulla mcnu...@gmail.com wrote: For $.50 a day we can run a VM in the cloud? I can hear

[wtr-general] Re: Watir 1.7.1 Released

2011-01-19 Thread Chuck van der Linden
Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup

[wtr-general] Re: Can I run tests in IE and FF one by one in the one ruby script?

2011-01-19 Thread Chuck van der Linden
Are we truly at a point where this is actually possible, or are there still differences such as zero based vs one based indexing that are going to cause scripts to malfunction from time to time? when you run them on the platform that is other than where they were developed? On Jan 5, 7:36 am,

[wtr-general] Re: Watir and appscan

2011-01-19 Thread Chuck van der Linden
Doesn't appscan have the ability to save the navigation you demonstrated to it, so that you can run it automatically on newer builds? On Dec 29 2010, 7:05 am, Dan dfra...@gmail.com wrote: Good Morning.  Anyone used Watir with appscan?  Basically, for those who don't know Appscan is a tool by

[wtr-general] Re: How to check a text in the lightbox (javascript)

2011-01-19 Thread Chuck van der Linden
I'm a bit stumped on why you are using 'enable?' as your method.. I'd think you'd be wanting to use exists? instead. have you changed the text you are trying to match to force a failure, and verified that your test reports fail? On Dec 29 2010, 11:49 pm, Irfan Ahmed irfan...@gmail.com wrote:

[wtr-general] Re: Watir and appscan

2011-01-19 Thread Chuck van der Linden
wouldn't it take more time to create the automation to have water navigate every page on the site than it would for a person to just walk through it manually? I guess I can see the point if you had existing automation, but I'd think that would be doing a LOT more than just clicking on all the

[wtr-general] Re: Watir 1.7.1 Released

2011-01-19 Thread Chuck van der Linden
. Charley Baker Lead Developer, Watir,http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts

[wtr-general] Re: Watir 1.7.1 Released

2011-01-19 Thread Chuck van der Linden
to the newer paradigm and the mingw tool chain. Just a thought anyhow. Charley Baker Lead Developer, Watir,http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying

[wtr-general] Re: Watir virtual appliances?

2011-01-19 Thread Chuck van der Linden
. On 1/19/2011 1:42 PM, Chuck van der Linden wrote: You really have to wonder how that business model flies..   doesn't seem like it would even come close to paying for the hardware alone, much less license fees for licensed OS's On Jan 13, 11:14 pm, Dave McNullamcnu...@gmail.com

[wtr-general] Re: Help: File Size defining with Cucumber Watir.

2010-12-20 Thread Chuck van der Linden
Why not do it as a scenario outline, Then in the examples specify two or more filenames that point to files of known size that allow you to explore the boundaries You could for readability even include the size of the files in the feature, but just ignore it other than paying attention to it when

[wtr-general] Re: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in Unknown

2010-12-20 Thread Chuck van der Linden
ok so wait, Dave, that was from two years ago, saying they didn't support IE, but were hoping to fix that bug as soon as possible.. so does that link reflect the current state? In any event all the errors I see there appear to be pointing into the FunFX code, and not at any of the Watir code, so

[wtr-general] Re: C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:19:in `js_eval': missing ; before statement (JsshSocket::JSSyntaxError)

2010-12-17 Thread Chuck van der Linden
so i  unistalled firewatir and then reinstall it with  http://wiki.openqa.org/display/WTR/FireWatir+Installationpage help and also installed JSSH firefox extension for FF3.6 as i am using FF3.6. But still i am getting same error in main thread . thanks Abhirevo On Dec 16, 5:28 am, Chuck van

[wtr-general] Re: C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:19:in `js_eval': missing ; before statement (JsshSocket::JSSyntaxError)

2010-12-15 Thread Chuck van der Linden
I'm wondering is this is perhaps a firebug problem?? when I search the group for (JsshSocket JSSyntaxError) I find some other threads where people are trying to do much the same thing browser.div(how,what).text_field(:id,something).set(somevalue) and getting an error similar to yours. a few

[wtr-general] Re: are you sure you want to navigate from this page.

2010-12-14 Thread Chuck van der Linden
in IE 6... Why in the world would you test using IE6? Seriously in the developed world, the percentage of folks still using IE6 is lower than even Opera. It's a miniscule portion of any potential market for just about any product except freeware. (yes there are a lot of people still using

[wtr-general] Re: Undefined method add_assertion

2010-12-13 Thread Chuck van der Linden
rspec uses a .should method to do validation (aka 'assertions'). so rather than trying to re-create a validation wheel, you should use the existing paradigm that is a part of rspec/cucumber browser.link(:how, what).should exist browser.title.should equal the expected page title I'd suggest

[wtr-general] Re: help-please: cucumber-watir tutorial

2010-12-13 Thread Chuck van der Linden
http://www.pragprog.com/titles/achbd/the-rspec-book buy and read On Dec 12, 4:39 pm, Basim Baassiri ba...@baassiri.ca wrote: Have you read any information herehttp://www.cuke4ninja.com/ On Sun, Dec 12, 2010 at 12:40 PM, Irfan Ahmed irfan...@gmail.com wrote: Hi, Anybody here who can

[wtr-general] Re: unable to click on list list item inside a div

2010-12-13 Thread Chuck van der Linden
(The OP appears to have deleted their original message.. not sure why, but since others may havesimilar issues, I'll respond anyway) What you have there is not a select list. It's an unordered list, that is made to look and behave like a select list via extensive Javascript reacting to events

[wtr-general] Re: Displaying text from RegEx

2010-12-10 Thread Chuck van der Linden
Presuming you have the company name in there as a variable (read from a data file or whatever) you could do the following cpname = Regexp.new(companyName) celltext = browser.table(:class, 'box3').cell(:text, cpname).text Then parse the celltext to grab the characters you want. In my tests I

[wtr-general] Re: Can't click on a nameless div

2010-12-08 Thread Chuck van der Linden
The other one to try would be ie.div(:class=mainModule).link(:href=#).click You tried something similar, but with .div as your second level element, and :href isn't a supported means to identify divs, just links and new browser windows I mention it because usually there's more than one means,

[wtr-general] Re: Option in select

2010-12-08 Thread Chuck van der Linden
Would a normal user be able to select the items that way? why not interact with the page in the way a user would, choosing the options on the select according to the displayed text? Given you can't interact as a user would, then in terms of getting the options, you could try using the

[wtr-general] Re: Opening new browser window from existing one

2010-11-30 Thread Chuck van der Linden
You are still trying to attach to the page before it is opened. 1) Do not confuse the The Title TAG which is part of the page header and sets the title of the webpage (which is usually displayed as the title of the browser window) with a 'title' Attribute, which can be set for any number of

[wtr-general] Re: click_no_wait fails for button to open modal dialog (Win XP, Ruby 1.8.6.26, Watir 1.6.7)

2010-11-29 Thread Chuck van der Linden
I'd suggest looking at some of the other solutions listed here: http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups perhaps one of them will work better. Otherwise specific answers to each step of the IRB process that Jarmo suggests, (are you getting the right hwnd, etc) might help to figure

[wtr-general] Re: Option in select

2010-11-29 Thread Chuck van der Linden
Another option might be to use the 'select_item_in_select_list' method but from what I'm seeing that only lets you select it by either the displayed label (:text) or the underlying value (:value) see http://rdoc.info/gems/watir/1.6.7/Watir/SelectList#select_item_in_select_list-instance_method

[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: Playback browser in fixed size.

2010-11-16 Thread Chuck van der Linden
tell the browser to go to this 'URL' or one like it: javascript:window.resizeTo(1024,768) (hopefully the site won't think I'm trying to do some kind of cross site attack) I have some favorites of that sort setup so I can resize the browser when doing manual testing, most of the time i find

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

2010-11-16 Thread Chuck van der Linden
unlucky :( Thanks again, Chethan --- On Fri, 12/11/10, Chuck van der Linden sqa...@gmail.com wrote: From: Chuck van der Linden sqa...@gmail.com Subject: [wtr-general] Re: Unable to call ruby script multiple times!! To: Watir General watir-general@googlegroups.com Date: Friday, 12 November

[wtr-general] Re: Need help in creating HTML reports

2010-11-11 Thread Chuck van der Linden
You realise that what you just asked amounts to 'I need help, please help me' and doesn't provide near enough detail for anyone to offer any level of assistance. what specifically isn't working? Provide a sample of your code Provide an example of the output Provide error text if an error is

[wtr-general] Re: Using HTML report V2 - Reports displayed twice in HTML format

2010-11-11 Thread Chuck van der Linden
On Nov 10, 2:39 am, vasu br.vas...@gmail.com wrote: Please help me in this issue. you've not provided enough details for anyone to help you. at the very minimum you'd need to do something like provide some sample code both for your tests, and of the report class if you've made ANY changes to

[wtr-general] Re: A JQuery solution for typing in textfields. What else should I be trying?

2010-11-03 Thread Chuck van der Linden
Generally I look at the code to see what kinds of events it is looking for. there will usually be something like say an 'onChange' event that is being monitored that is causing some javascript or jquery code to be executed. If you really need to simulate something that is responding literally

[wtr-general] Re: OT: What hardware do you have for hosting VM's?

2010-10-22 Thread Chuck van der Linden
Disk and RAM tend to be the two big resource contention areas, along at times with CPU (or number of cpu's) You need FAST disks, and it's good to spread the VM's across a few differnt disks if you can affort it. RAM ends up being very critical to what you can run at any one time, and the problem

[wtr-general] Re: Read PDF with Ruby?????

2010-10-13 Thread Chuck van der Linden
That project is 4 years old and it does not appear to have had any updates since it originally went up on Rubyforge. Not sure if that's a good thing (code is solid) or a bad thing (developer lost interested and moved on to other things). This group is specific to Watir, not general Ruby

[wtr-general] Re: Version Problem

2010-10-13 Thread Chuck van der Linden
Sorry but in terms of having the information needed to troubleshoot this with you, the description of behavior not working is insufficient for me or almost anyone else to have any kind of guess as to what you might need to do. Please provide URL (if public) Sample of code where the issue is

[wtr-general] Re: Watir handling of ul and ol tags

2010-09-29 Thread Chuck van der Linden
Also bear in mind that the list 'container' the OL tag isn't normally itself rendered on the screen in a visible way.. so users don't normally interact with it. The 'guts' of the list (li tags) is where the interaction normally happens, and also what most commonly verified or acted on in

[wtr-general] Re: free ware test tool based on Watir ??

2010-09-23 Thread Chuck van der Linden
Without knowing more about how you express and manage tests it's hard to make specific recommendations. For teams that are using BDD (Behavior Driven Development, think of it as the next generation of TDD) the Cucumber tool works well to execute the BDD plain language stories, and the steps for

[wtr-general] Re: How can you avoid Omniture recording when using WaTiR to test production website?

2010-09-21 Thread Chuck van der Linden
This is probably a good tip for us to add to the FAQ.. it can be used for all sorts of 'partner' content that might be on or within page code: analytics banner ads (which you don't want to be charged for) or anything else that might either throw off numbers, or result in some kind of chargeback

[wtr-general] Re: Trying to test for table data

2010-09-16 Thread Chuck van der Linden
_ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell

[wtr-general] Re: Trying to test for table data

2010-09-16 Thread Chuck van der Linden
testable, but would make the test code a lot more readable. On Sep 16, 10:13 am, Chuck van der Linden sqa...@gmail.com wrote: I'll wager the ID value 'Table_01'  is not unique within the document, and some other element that is NOT a table is being returned when Watir goes out and tries to get

[wtr-general] Re: Javascript popup on goto()

2010-09-15 Thread Chuck van der Linden
http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Or use the 'search this group' box at the top of the page and search for 'javascript popup' On Sep 14, 8:16 am, balexis bale...@gmail.com wrote: Hello, I'm running Firewatir 1.6.5 on Ubuntu

[wtr-general] Re: way to perform double click operation for select list box object item

2010-09-15 Thread Chuck van der Linden
Makes complete sense. Normal HTML select list controls don't support a 'double-click' function (nothing on the web normally does doubleclicks). Ergo the functionality you are seeing must be implemented with javascript, which is activated when it see's the doubleclick event occur within the

[wtr-general] Re: Setting text in br tags

2010-09-15 Thread Chuck van der Linden
Is this some kind of activeX control that appears like a native windows control? If so it makes sense to use AutoIT if it's implemented in a browser, as some kind of normal input field you'd think that it would be easy enough to set the field and then fire whatever event (or use submit

[wtr-general] Re: How to access attribute link eg. onclick

2010-09-09 Thread Chuck van der Linden
Another possiblity would be to take a slightly more functional approach Click the link, or fire the onclick method, and then test that the right thing happened as a result. surely there's some way (either by the resulting page, data on the resulting page, or perhaps looking at a backend db) to

[wtr-general] Re: watir dynamic value

2010-09-06 Thread Chuck van der Linden
strange it looks like the OP deleted their message, we now have a thread that basically starts in the middle On Sep 6, 1:37 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sun, Sep 5, 2010 at 7:56 PM, nix amritd...@gmail.com wrote: Iam unable to click on a dynamically generated

[wtr-general] Re: More than one condition

2010-08-26 Thread Chuck van der Linden
On Aug 25, 1:44 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: I will give you exact examples: I want to click on this html tag: a href=/c2p/imperativeMain.do?navTrailRequired=falseamp;id=1 class=linkList onmouseover=TagToTip('ID_SPAN_CONTEXT_NOTE__1', WIDTH, -240, SHADOW, true,

[wtr-general] Re: More than one condition

2010-08-25 Thread Chuck van der Linden
That won't ever work Basim, because per HTML standards ID values are supposed to be unique within a page. In this case the page has malformed HTML, it's not valid. That's a bug that should be filed and the page code corrected so that ID values are not repeated within the page. It's ok to

[wtr-general] Re: More than one condition

2010-08-25 Thread Chuck van der Linden
The problem is that the link above has the same url, but I dont want to click on the link in that table since it will take me to a dead end. HUH? If THE URL IS THE SAME, then how can one link lead you somewhere the other link does not? If both links point to the same URL, they should both

[wtr-general] Re: How to select a item from the dropbox

2010-08-24 Thread Chuck van der Linden
').select_list(:name,level).select(bu) Thanks for ur help On Aug 23, 10:36 pm, Chuck van der Linden sqa...@gmail.com wrote: b.frame(:name, 'rightFrame2').select_list(:name,level).set(bu) 1)  You might want to try using .select  instead of .set    You might also want to first clear any selected

[wtr-general] Re: Problem in Watir::Waiter.wait_until()

2010-08-23 Thread Chuck van der Linden
Yeah, learning how to use Rdocs (allmost all ruby gems use them) is critical for working with ruby. The Watir Wiki also is useful http://wiki.openqa.org/display/WTR/FAQ http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Lastly, did you try searching this group on 'wait_until' ?? that's

[wtr-general] Re: How to select a item from the dropbox

2010-08-23 Thread Chuck van der Linden
to access the site? Regards Pallavi. On Tue, Aug 17, 2010 at 4:37 AM, Chuck van der Linden sqa...@gmail.comwrote: It doesn't make any sense that a change later in the script would cause a problem with logging in, unless perhaps you had not logged out the prior user

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Chuck van der Linden
it sounds almost like the frame has come disconnected and you need to re-attach. Remember that the objects in your code are pointing at objects in the DOM of the browser. when you create an object in your code like 'main_frame' it's pointing to a specific instance of the object in the DOM that

[wtr-general] Re: Unable to connect to oracle by oci8

2010-08-20 Thread Chuck van der Linden
Or if there is a specific means given for support of the oci8 gem, post your message there. A majority of the folks here will have zero experience using that gem to connect to an oracle db. On Aug 20, 7:54 am, Basim Baassiri ba...@baassiri.ca wrote: On Thu, Aug 19, 2010 at 10:24 AM, Wang,

[wtr-general] Re: unable to access elements in iframe

2010-08-20 Thread Chuck van der Linden
With such generic code the best I can do is give you a similarly generic answer. use the form browser.frame(:how, what).element(:how, what).method 1) to get a useful response, provide more details as to the html that defines the iframe at the very least. and also tell us the specific element

[wtr-general] Re: unable to find element using xpath

2010-08-20 Thread Chuck van der Linden
: Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.com wrote: As an alternativ...  --  Before

[wtr-general] Re: Select an element when :id and :class are not completely known

2010-08-19 Thread Chuck van der Linden
There you go. that's what I was about to suggest. as long as you're able to create a regex that won't match more than one classname, you are in business. Another alternative (if you have control over what's being created) might be to also have the jQuery code assign a 'name' to the element,

[wtr-general] Re: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError)

2010-08-18 Thread Chuck van der Linden
please give me an example Thanks, Goutham On Tue, Aug 17, 2010 at 8:39 PM, Chuck van der Linden sqa...@gmail.comwrote: The most likely explanation when you see 'undefined method' (and you haven't mispelled the method or something like that)  is that the browser object is no longer pointing

[wtr-general] Re: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError)

2010-08-17 Thread Chuck van der Linden
The most likely explanation when you see 'undefined method' (and you haven't mispelled the method or something like that) is that the browser object is no longer pointing at an instance of a web browser. That can happen in IE when the security context of the site changes (e.g. the browser starts

<    2   3   4   5   6   7   8   9   10   >