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

2010-08-17 Thread Chuck van der Linden
As an alternative, could you perhaps persuade your developers to add an attribute to the areas that would make it easier for you to identify them (such as and ID or Name?) This also makes me wonder on the dev side, why we don't support 'title' as a means to identify area's ? is there some

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

2010-08-16 Thread Chuck van der Linden
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, it was the same browser session, and an active session still existed?, or there were cookies or some other means by which an active session was

[wtr-general] Re: How I can do double click on a calendar?

2010-08-16 Thread Chuck van der Linden
, and you can do double click over the row like in the image attachment. 2010/8/13 Chuck van der Linden sqa...@gmail.com The problem is  a) it makes for unreadable text code, there's no way to tell what cell it's clicking etc  b) next month, will the xpath be the same? Are you folks

[wtr-general] Re: How to access a href link which is a java script?

2010-08-13 Thread Chuck van der Linden
Just offhand, I'd wager there was more than one link on the page with class=sWhiteLink , so you'd needed to have added an index value, or another 'how' in order to uniquely identify the link. On Aug 12, 1:56 pm, Chan Nguyen atbl1...@gmail.com wrote: Thanks a lot order, I got it worked when I

[wtr-general] Re: Problem finding a way to access a link

2010-08-13 Thread Chuck van der Linden
OK so what you have is a link with no text or anything of it's own, just a 'naked' link, cohabitating in a cell with some text. At the manual UI level it works because the objects all superimpose and when someone positions the mouse over the text, they end up clicking the link Watir wise, what's

[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chuck van der Linden
Frames are evil. Most web 2.0 developers I know try to avoid them like the plague. I cannot share with you (without lots of censoring) what my web-devs say about people that still use frames. (well except for the dev from Russia, he just said 'they should be taken out and shot'.. (Stalin would

[wtr-general] Re: How I can clear a list (ul)

2010-08-13 Thread Chuck van der Linden
First off, what does 'does not work' mean. what happens? do you get an error message? if so what is it? Second, That's an un-ordered list. it's not settable or clear-able. The.clear method is for things like INPUT type tags such as checkboxes Third, The example doesn't match your code

[wtr-general] Re: Check out the Watir Stack Exchange site!

2010-08-13 Thread Chuck van der Linden
Too radical? I don't know. I agree something better is needed, google groups is not well suited to a 'support' type of work, there's no good way to track answered vs unanswered questions, nor which responses ended up being the best answer. Even the MSDN forums that MS has are far better, but

[wtr-general] Re: How I can do double click on a calendar?

2010-08-13 Thread Chuck van der Linden
The problem is a) it makes for unreadable text code, there's no way to tell what cell it's clicking etc b) next month, will the xpath be the same? Are you folks using Coolite (EXTJS) tools? There's probably a better way to identify the place you are trying to doubleclick. possibly by the

[wtr-general] Re: Calendar Click

2010-08-11 Thread Chuck van der Linden
When something works if you enter the commands manually, but fails when run from script, the most often issue is one of timing, and allowing for client side javascript or other rendering details to be processed. Usually all that means is you just need a little time added between the last working

[wtr-general] Re: Calendar Click

2010-08-11 Thread Chuck van der Linden
in some of the details and hitting the search button. On Aug 11, 7:41 am, Chuck van der Linden sqa...@gmail.com wrote: When something works if you enter the commands manually, but fails when run from script, the most often issue is one of timing, and allowing for client side javascript or other

[wtr-general] Re: Watir script editor

2010-08-11 Thread Chuck van der Linden
This is basically a simple question of the form 'how do I run a ruby program'. Reading the basic documentation that comes with Ruby ( either 'getting started with ruby' or 'users guide') is strongly advised. Something else that would greatly improve your 'quality of life' vis a vis water and

[wtr-general] Re: identify elements in goggle mail box

2010-08-11 Thread Chuck van der Linden
The other difference is you won't normally be dealing with an application that actively TRIES to be difficult to script against. Now truthfully I can't say for sure that is the case (having not talked with anyone at google who can confirm that suspicion) but sure as heck both FEELS like it IS the

[wtr-general] Re: Watir testing a XSLT webapp

2010-08-11 Thread Chuck van der Linden
If you do things manually does it work? Is it possible that while all the data has been sent, that the browser is still busy doing client side rendering and style applications etc at the point the script is trying to interact with it? The error might be indicating the element you are trying to

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

2010-08-09 Thread Chuck van der Linden
If the below does not work, then use the IE Developer Toolbar, or Firebug, to have a look at the element to see if it is really an HTML select list, or if it is some other kind of control. There are often Javascript powered 'section lists' which are enabled using other types of objects (often an

[wtr-general] Re: when HTML code changes to often

2010-08-03 Thread Chuck van der Linden
What Z is saying here is that you need to address the problem of the brittle UI with the developers. If you explain the testability issue to them, its often possible to work out an agreement that they will do something like leave the ID values the same (all the while that they move stuff around,

[wtr-general] Re: Having a Devil of a time accessing this button...

2010-07-27 Thread Chuck van der Linden
Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working' it helps if we get a bit more detail in terms of things like 'does anything happen? do you get an error? (if so,

[wtr-general] Re: facing issue with clicking buttons

2010-07-27 Thread Chuck van der Linden
Frankly I'd find some other thing to try and automate. GMAIL intentionally makes their UI difficult to automate. ID's are uniquely regenerated each time you instantiate the compose mail page (and different each time) Classes look fairly randomized and I'd place no bets on Gmail not updating

[wtr-general] Re: Having a Devil of a time accessing this button...

2010-07-27 Thread Chuck van der Linden
, 2010 at 3:38 PM, Chuck van der Linden sqa...@gmail.comwrote: Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working'  it helps if we get a bit more detail

[wtr-general] Re: How to Select the data in Multiselect list box

2010-07-19 Thread Chuck van der Linden
You may have another challenge here. I don't think HTML's simple Selection List element is capable of multi-select. If you are working with a control that allows things like Multi-select then there's good odds that it is implemented via some kind of Javascript control. That means you are going

[wtr-general] Re: selenium-webdriver snow leopard issur

2010-07-19 Thread Chuck van der Linden
well I'd say the first thing you are doing wrong, is asking a Selenium question in a group full of people that mostly use a different tool (Watir) and for the most part have little knowledge of Selenium. Your odds of getting a good answer to why you can't compile that gem would be a lot higher if

[wtr-general] Re: cant get an element

2010-07-19 Thread Chuck van der Linden
When viewing this web page manually, is this value solo, or one of many similar values? How do you know when manually executing the test, which value you are trying to get? Is the ID value for the wpFieldValue span predictable? In theory browser.p(:class, wpFieldValue).text would return what

[wtr-general] Re: Issue retrieving URL for a HTML file loaded from local file system

2010-07-13 Thread Chuck van der Linden
In that case, since it's windows, should you not be using backslashes when specifying a file path on the local system? (which will likely need to be doubled since they are ruby's 'escape' character) Under 'dos' and 'windows' both, backslashes separate subdirectories in relative or absolute file

[wtr-general] Re: unable to click image in a div

2010-07-13 Thread Chuck van der Linden
Look in the HTML or scripting and see what events the div is set to respond to. Does it take on a different appearance when you mouseover it? it might be that the mouseover replaces the 'button-up' with something else (a 'button-focused' or 'button-active or somesuch, and it's actually that

[wtr-general] Re: Rich calender how to get value

2010-07-08 Thread Chuck van der Linden
They are both failing because as I indicated earlier, there is more than one cell in the table with the text '30 in it.Try using both the class of the cell, and the text, as I specifically said in an earlier response There is first this 'boundary' one from the month before TD

[wtr-general] Re: Iterate through radio buttons

2010-07-08 Thread Chuck van der Linden
Good point as to exaclty why it was evaluating to 'true'. . and yes .exists? is your friend. I use it often On Jul 7, 3:33 am, Jarmo Pertman jarm...@gmail.com wrote: On Jul 6, 12:21 am, Chuck van der Linden sqa...@gmail.com wrote: See commented line, then below    Functionally you

[wtr-general] Re: warning: method redefined; discarding old map

2010-07-08 Thread Chuck van der Linden
You don't normally do both a 'require' and 'include' of the same module In fact unless you know precisely what you are doing, you want to avoid the 'include' keyword in most cases Read this: http://wiki.openqa.org/display/WTR/include+Watir I'd try removing the two 'include' lines and see if

[wtr-general] Re: WIN32OLE.Open - runtime error

2010-07-08 Thread Chuck van der Linden
Backslash is the 'escaping' character in ruby, for example to insert a single quote as part of a single quoted string you would do s='that\'s the answer' If you : puts s you would get: that's the answer Similarly it would be used to insert a double-quote inside a double quoted string. So the

[wtr-general] Re: Recommendation Needed: FireWatir Scraping Framework

2010-07-08 Thread Chuck van der Linden
What exactly are you trying to scrape? if it's just a few values here and there, it should be simple enough to get them directly if you know what element encapsulates the text you want. browser.element(how, what).text will give you the text inside an element. Unless of course the site is

[wtr-general] Re: Iterate through radio buttons

2010-07-06 Thread Chuck van der Linden
On Jul 4, 6:30 am, arihan sinha arihan.si...@googlemail.com wrote: count the no of radio buttons with certain ids first then use the for loop for this On Thu, Jul 1, 2010 at 12:08 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: For the HTML to be proper, the ID values should be unique, so

[wtr-general] Re: Iterate through radio buttons

2010-07-05 Thread Chuck van der Linden
See commented line, then below On Jul 3, 11:33 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Joe, For example I was trying: $ie.radios.each do | radio |           if($ie.radio(:id,ID_OTHER_OPTION_BUTTON)) ### This does the same thing every time             puts(yes)           else

[wtr-general] Re: Rich calender how to get value

2010-06-30 Thread Chuck van der Linden
am confused class, there is 2 classes in HTML code. class=rich-calendar-input class=rich-calendar-button which one to use. My requirement to select a 30-jun-2010 date from calender. Regards, Naresh On Jun 29, 8:32 pm, Chuck van der Linden sqa...@gmail.com wrote: If it's the same

[wtr-general] Re: Rich calender how to get value

2010-06-29 Thread Chuck van der Linden
If it's the same as the sample that was linked early in the thread, when this control is rendered in the UI, it is a series of table cells, and each cell is 'wired' for a number of events. You may need to experiment with what events are fired in what order, I'd start however with trying the

[wtr-general] Re: Regarding Script

2010-06-22 Thread Chuck van der Linden
It's very amusing to see two people post in two different threads, the exact same script.Are you folks taking a class that uses Watir ? FWIW I'm not sure if it will solve the problem you are having on 'this system' vs 'other system' but the way you are going about the script is a bit

[wtr-general] Re: Issue with Watir Installation

2010-06-22 Thread Chuck van der Linden
See reponse in this thread http://groups.google.com/group/watir-general/browse_thread/thread/788c6b6817b95d1f possibly you need a sleep statement before trying to set the textfield text. On Jun 22, 5:07 am, Betsy joybe...@gmail.com wrote: The issue was somehow with the site.. Google never

[wtr-general] Re: Tagging tests in a regression suite

2010-06-22 Thread Chuck van der Linden
There are a number of frameworks that have been created that help to try and group up related tests etc. but one important question, when you say 'related' do you mean 'dependent'?, as in you need to run things in a specific order? Generally I'd advise against that if at all possible since one

[wtr-general] Re: Insertion of data into oracle database through watir script

2010-06-17 Thread Chuck van der Linden
On Jun 16, 11:07 pm, naresh nareshvatsa...@gmail.com wrote: Hi All, I want to automate data insertion through watir script. I want to take data from  text field and create insert query. If anyone have done already, please guide me. I tried to set value though set method textField, but when

[wtr-general] Re: How to read a google doc or send a google mail?

2010-06-17 Thread Chuck van der Linden
OTOH, if you want to try automating it as an exercise, then have at it, and post specific bits of code if you are having problems. Since almost any of us can get to g-mail it's not a bad place to use for this kind of experimentation. If you want one of us to do the work for you and hand you a

[wtr-general] Re: AutoItX3 failing on virtual machine when remote desktop window minimized/closed

2010-06-03 Thread Chuck van der Linden
Most virtualization platforms have an option for a connection that looks to the virtualised OS like the 'console' and is thus treated differently by the OS than a RDP session. For example Hyper-V provides a way to connect to the VM via Virtual Machine Manager (or at least one sidebar gadget) and

[wtr-general] Re: Radcombox automation

2010-05-27 Thread Chuck van der Linden
...@gmail.com wrote: Hi, Please find the attached screen shot of Rad combo box. i can able to click the drop down list but i could not able to select the value. Please check the screen shot Thanks for replying Khaja On Tue, May 25, 2010 at 10:43 PM, Chuck van der Linden sqa

[wtr-general] Re: click the nodes in Rad Tree view

2010-05-27 Thread Chuck van der Linden
try looking for something of this form browser.div(:text, text to right of plus).span(:class, rtPlus).click If that doesn't work for you, (and be sure to check on the class of the span) then have a look at telerik's site at their treeview examples and identify which one of them is closest to

[wtr-general] Re: how do i select from ctrls?

2010-05-25 Thread Chuck van der Linden
It looks to me like what you have here is a custom UI of some sort that is implemented all in client side javascript. There's surely nothing there that looks like a normal HTML selection list control. what will probably help the most in terms of trying to manipulate this stuff is using either

[wtr-general] Re: Radcombox automation

2010-05-25 Thread Chuck van der Linden
I doubt that code sample will help much. That's great for actual HTML selection list elements, but he's dealing with 'rad' controls which are javascript driven controls that emulate the normal HTML selection list, but add other functionality (like a 'prompt' value that's in the control space to

[wtr-general] Re: Enabling button in FireWatir

2010-05-20 Thread Chuck van der Linden
I'd put my money on an 'onChange' event needing to be fired, especially if the expected action happens after a value is entered in the field. But as Joe says, check the HTML in that area and look for an event handler that calls a particular bit of javascript when some event is fired for that

[wtr-general] Re: Selecting a value from a drop down list

2010-05-20 Thread Chuck van der Linden
What you are dealing with here is a 'ehanced' selection list that is implemented entirely with Javascript code. it's not a standard HTML selection list, so none of the standard methods what would work with such a list are going to work for you. (a standard selection list would use a select tag,

[wtr-general] Re: canxth element

2010-05-07 Thread Chuck van der Linden
I feel obligated to point out one thing here: Per the current (and the earliest of) HTML standards, values for id attributes are supposed to be UNIQUE within a document(page). id=name Define a reference name for the tag that is UNIQUE in the document. (emphasis mine) There are parts of Watir

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-28 Thread Chuck van der Linden
at the nth element in the dropdown. Do you have any ideas? I really appreciate the help! On Aug 24, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: Try clearing the current selection, before selecting another value in the selection list. Also since picking the radio button

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-24 Thread Chuck van der Linden
Try clearing the current selection, before selecting another value in the selection list. Also since picking the radio button causes the page to re-render (or is it a postback?), you might need to put in a small wait for a second or two after doing that to give the browser a chance to do it's

[wtr-general] Re: while ie.contains_text(Next) loop problem

2009-08-21 Thread Chuck van der Linden
Seems to me that the letters 'next' might be rather common to find on a lot of pages, and are you SURE it's not there even if perhaps part of another word? If the 'next' is a clickable link or button , then perhaps you'd be better off to look to see if the link exists? while

[wtr-general] Re: Not able to select the Printer Dialog Box contents !

2009-08-04 Thread Chuck van der Linden
That dialog box is effectively a 'popup' you can find a bunch of stuff via the watir FAQ on dealing with popups This message from about 6 months ago might help also http://groups.google.com/group/watir-general/browse_thread/thread/0f87efefd3b4a8d7?hl=en# On Aug 2, 9:43 am, CHANDRA SHEKAR

[wtr-general] Re: Can't click on an image link.

2009-08-03 Thread Chuck van der Linden
On Aug 2, 10:59 pm, jane.liu jane.li...@hotmail.com wrote: hi,james,  use the following code for trying: ie.image(:xpath,//i...@src='=../ App_Themes/co/locationdrilldown_hollow.jpg']).click the .image method acts on elements defined with the img tag. In his case he has an input type=image

[wtr-general] Re: Detecting whether or not text in a text field is highlighted

2009-08-03 Thread Chuck van der Linden
what does 'hilighted' mean? some kind of background color in the whole text field? the 'focus' on the text field? or do you mean 'selected' as if I'd done a click and drag with the mouse? On Aug 3, 11:06 am, George george.sand...@gmail.com wrote: Hello all, On a web app I'm testing, I'm

[wtr-general] Re: Script to click the dynamically generated link.

2009-07-29 Thread Chuck van der Linden
On Jul 28, 10:06 pm, Swapnal swapnal.sa...@gmail.com wrote: Hi, In this application when we add user every user will have the 'Edit' and 'Delete' link. span class=savedentityanbsp;-nbsp;associate/span/td                                                 tr bgcolor=#f6f2f6                

[wtr-general] Re: Attach failing with NoMethodError

2009-07-28 Thread Chuck van der Linden
The error would tend to indicate that whatever is trying to invoke the .attach method is no longer pointing to an instance of a browser object. Although why that would be the case if the exact same code executes fine on a different system is an interesting question. You might want to check the

[wtr-general] Re: atul-query

2009-07-28 Thread Chuck van der Linden
its not working doesn't give folks much to go on what happens when you try to run the script? On Jul 28, 4:12 am, atul shukla atul.shukl...@gmail.com wrote:  Hi     I am trying to upload and save file from this watir script but its not working. can i get some guidelines to make this

[wtr-general] Re: Script to click the dynamically generated link.

2009-07-28 Thread Chuck van der Linden
When interacting with the page manually, how do you know which link you want to click? is it always in the same position (e.g. always the third 'edit' link) or next to a particular label in the table, or something else? without knowing how you determind which is the correct link to click, we

[wtr-general] Re: Getting style attribute of HTML element

2009-07-28 Thread Chuck van der Linden
For some of the more 'standard' style attributes I've also been able to get at them similar to this puts ie.div(:id, 'search').style.visibility Aaron, if the style is not specified in the basic HTML for the page, then it's likely coming from a resource such as a .CSS file, or could be

[wtr-general] Re: Testing Link on list of pages

2009-07-28 Thread Chuck van der Linden
Small critique to the test you are doing. What's the inner if' statement supposed to be doing for you? why return the browser to the page you are testing after the first link you check, but not after any others? From the looks of your code, your intent is to 'spider' each link on the pages you

[wtr-general] Re: Watir support java applets

2009-07-23 Thread Chuck van der Linden
most of the attachements appear to be empty. (nor for that matter, am I sure that Elcom would be terribly happy if you posted all the code for their app.) Unless there is a test or demo site that could be accessed via the internet to sort of 'play' with the application we may be limited here to

[wtr-general] Re: Pick pop-up text and oracle DB connectivity issue

2009-07-22 Thread Chuck van der Linden
Firstly, please do not ask two questions that are not related in a single thread. This is no different than asking a new unrelated question in an existing thread. it makes things much too confusing for everyone, and harder for anyone coming here and searching for answers to find what they need.

[wtr-general] Re: Watir support java applets

2009-07-22 Thread Chuck van der Linden
Watir drives the browser. there are little if any plans for anything outside that scope. If your stuff has a browser UI then likely Watir can be used to automate it. if it's running outside of a browser, then Watir is not the tool you seek. On Jul 22, 3:37 am, khaja shaik

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-22 Thread Chuck van der Linden
You probably need to take this to one of the more mainstream ruby discussion lists. This is really outside the scope of Watir since it's really more of a general ruby language question, and also we seem to have reached the limits of the folks here who are familiar with this since they have told

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

2009-07-21 Thread Chuck van der Linden
try it manually from a IRB console session, Get the element selected in firebug so you can see it's properties then try firing first the onmouseover event as that is specifically what the element is set to trigger on. have a close look in firebug at how the item was modified by the code that

[wtr-general] Re: Problem while working with WET WATIR IE 7

2009-07-21 Thread Chuck van der Linden
This is a question for the WET mailing list. The vast majority of folks here just code directly and don't bother with recorders. On Jul 21, 6:37 am, Monali Patil monali.pa...@sqs-india.com wrote: Hi All, I am working on Automation Project where I am using Open Source tool ‘Wet Watir’ for

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

2009-07-21 Thread Chuck van der Linden
On Jul 21, 12:12 am, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Is there any command to get text from web page like my requirement is to get order-no from thank you page. Please search the group for an answer first, I'm pretty sure this topic has been covered. If you dont' find an

[wtr-general] Re: Watir and IE7

2009-07-21 Thread Chuck van der Linden
have a look at the task manager when this happens and see if IE seems to have consumed an inordinately large amount of memory, or is using tons of CPU cycles. IE can be a bit of a pig at times, and several of us have found that if you try to run prolonged scripts in them that it can get a bit

[wtr-general] Re: Embed tag - watir

2009-07-21 Thread Chuck van der Linden
'flash-form', 'swf', 'ismultiflash' I see a whole lotta flash stuff here, so you might have to look at flashwatir In the meantime, did you try ie.button(:class, 'flash-upload-button').click On Jul 18, 2:54 am, Raveendran P jazzezr...@gmail.com wrote: Hi, html CODE: div

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Chuck van der Linden
You may also find a lot more folks who know about doing this sort of thing in the main ruby forums than you will here where many of the folks have never needed to connect to a db (or if they did it was mysql or ms-sql) in order to test against a web UI. On Jul 21, 8:36 am, karim rayani

[wtr-general] Re: Need help

2009-07-21 Thread Chuck van der Linden
On Jul 13, 3:41 am, Brautigam Gergely skarlso...@yahoo.com wrote: He says that the file he is using does not contain which Checkbox INDEX he has to set... Only the ID which is that of all of the check boxes and not an Index i guess.. But why not? Simply add it to the file or ask the Devs

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

2009-07-21 Thread Chuck van der Linden
') browser.div(:class,'mainCartists').link(:text, 'Argentina').click Good luck. On Jul 21, 11:06 am, Chuck van der Linden sqa...@gmail.com wrote: try it manually from a IRB console session, Get the element selected in firebug so you can see it's properties then try firing first the onmouseover event

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread Chuck van der Linden
of the other ruby libraries, or they build their tools in their main production language (ie. Java). Jaredhttp://www.software-testing.com.au/blog/ Chuck van der Linden wrote: You may also find a lot more folks who know about doing this sort of thing in the main ruby forums than you will here where

[wtr-general] Re: Time to learn Watir

2009-07-10 Thread Chuck van der Linden
On Jul 10, 9:06 am, karim rayani karim@gmail.com wrote: if one has knowledge of automation then learning watir should only take around 1 month. However if automation/programming background then it can take a fair bit of time I could not agree more. A lot also has to do with aptitude.

[wtr-general] Re: Watir + Cruise Control

2009-07-10 Thread Chuck van der Linden
On Jul 9, 10:58 am, Dylan mej...@gmail.com wrote: Does anyone know of a good tutorial/step-by-step instructions for how to integrate watir/ruby into a cruise control build cycle. I have 1 xml output file (from ci_reporter) and I want my script to run after the build and then integrate the xml

[wtr-general] Re: how to automate dynamic object using watir having ajax based controls

2009-07-01 Thread Chuck van der Linden
Generally the functionality you describe is event based.. So there's an element on the page (we'll call this the 'trigger') that is set to call some client side script when an event like 'onMouseOver' occurs, that client side scripting then re-renders a part of the webpage causing the thing you

[wtr-general] Re: Custom UI controls in .net Web app

2009-07-01 Thread Chuck van der Linden
Well if those were normal text boxes and such, you'd be fine, even with events like 'onchange' or whatever associated with them. Watir doesn't know what to do with a gMed:Control element, so you'd have to write custom code to interact specifically with that. The stuff inside it is fairly

[wtr-general] Re: Internet Explorer stops loading pages.

2009-07-01 Thread Chuck van der Linden
IE can be a memory pig.. it like tries to remember and cache nearly everything you've done. next time this happens have a look at taskman and see how much memory IE is using.. Others that have encountered this have found it beneficial to have their tests periodically close and re-open the

[wtr-general] Re: How to click on text on a cell which locate inside undefined tables

2009-06-13 Thread Chuck van der Linden
why are you firing the 'ondblclick' method? Normally if text in a cell is able to be clicked, it is because of one of two things are happening 1) the text is a link. in which case just use the .click method on the link element and it normally works 2) a container in the cell such as a div,

[wtr-general] Re: require function is not working

2009-06-12 Thread Chuck van der Linden
require is a pretty fundimental part of Ruby. it's not a Watir function. I doubt it has changed, so you should be looking elsewhere (path settings perhaps?) for the cause of your error. Providing actual errors you are getting instead of just saying 'not at all working' would be highly useful

[wtr-general] Re: how to set IE screen width height?

2009-06-12 Thread Chuck van der Linden
you can even execute that same script bit manually by entering a command in the browser's URL entry box. I have favorites setup with 'URL' values like javascript:window.resizeTo(1024,768) never tried using that as a parameter for a browser.goto but in theory it would work (although Micheal's

[wtr-general] Re: comparision between watir and wet

2009-06-11 Thread Chuck van der Linden
I agree with George, I think you have more current tech and support with Watir. As far as the Object Repository idea goes, at least two frameworks for Watir (Taza and Watircraft) support this notion via 'page' files you can use to define logical names for the elements on a page that you need to

[wtr-general] Re: Can WATIR automate web applications developed using Sharepoint Technology ?

2009-06-11 Thread Chuck van der Linden
I'm testing against 'fancy .net active pages' and so far Watir is working fine for this. of course each site is different and YMMV. I think in large part Watir works well for this because no-matter what insane 'magic' the devs do on the back side, ultimately it's all HTML sent over HTTP when it

[wtr-general] Re: Towards migrating to Watir.com

2009-06-11 Thread Chuck van der Linden
Well personally I like the 01 site a bit better.. That being said, I did like the 'watir buzz' section on the first one, and it would be neat to see something like that incorporated into the 01 page. The one thing I think needs to be said that isn't on either of those pages is something about

[wtr-general] Re: Unsupported type 0 when trying to write a REG_NONE subkey to the registry

2009-06-11 Thread Chuck van der Linden
This is more of a generalized ruby question than watir specific. So you might get better answers from the ruby forum. This thread over there from a few years back might also be of use getting you headed the right direction http://www.ruby-forum.com/topic/76585 On Jun 10, 8:59 pm, dt_nz

[wtr-general] Re: currentstyle not working in firefox

2009-06-09 Thread Chuck van der Linden
/).style.invoke('left') when I try it in firefox I get   Exception: undefined method `invoke' for [object CSSStyleDeclaration]:String has Occurred I feel as though I'm close I'm just missing something simple.  Am I using style correctly for firefox On Jun 8, 5:02 pm, Chuck van der Linden

[wtr-general] Re: automating application running on remote network

2009-06-09 Thread Chuck van der Linden
It sounds like you are doing a remote desktop type of connection. In that case Ruby, Watir, etc would need to be installed on the remote system. Perhaps they can give you a special desktop (tied to a particular login) which had those things installed. Automating anything 'through' remote

[wtr-general] Re: automating application running on remote network

2009-06-09 Thread Chuck van der Linden
On Jun 9, 3:49 am, Rahul Ahuja mightyah...@gmail.com wrote: Due to security reasons I can share the snapshot. Tip: use Snag-it. trial install is available and the license is cheap for the tremdeous utility it offers in doing screen captures and markups. then use blur feature to make any

[wtr-general] Re: Can't Click Div element

2009-06-08 Thread Chuck van der Linden
On Jun 8, 4:51 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Jun 8, 2009 at 1:48 PM, Chethan chethan2...@gmail.com wrote: img class=collapseImg src=themes/leadforce1/images/expand.gif/ browser.image(:src, /expand/).click div class=collapseHeaderTextView More Details

[wtr-general] Re: Towards migrating to Watir.com

2009-06-08 Thread Chuck van der Linden
, Chuck van der Linden sqa...@gmail.com mailto:sqa...@gmail.com wrote:     On Jun 5, 5:07 am, Željko Filipin zeljko.fili...@wa-research.ch     mailto:zeljko.fili...@wa-research.ch     wrote:     On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden     sqa...@gmail.com mailto:sqa

[wtr-general] Re: Getting style information in FireFox

2009-06-08 Thread Chuck van der Linden
You had just asked in the other thread if there were workarounds.. so why are you an hour later starting a new thread asking the very same thing? On Jun 8, 11:55 am, Loft_Tester aaronr...@gmail.com wrote: I have a question already posted about using currentstyle in Firefox and the fact that it

[wtr-general] Re: currentstyle not working in firefox

2009-06-08 Thread Chuck van der Linden
have you tried just using the .style method on the specific object? On Jun 8, 11:00 am, Loft_Tester aaronr...@gmail.com wrote: Is there another workaround for this? Thanks On Jun 8, 10:38 am, Loft_Tester aaronr...@gmail.com wrote: OK, I tried working on this for sometime but I haven't

[wtr-general] Re: Please help! Can no longer open a Firefox browser...

2009-06-08 Thread Chuck van der Linden
I would also make sure you have all the proper gem's installed and updated. This sounds similar to some other issues people have had with some win32 related stuff that Watir needs.. If you search the group for Win32 you'll find some threads related to that, might want to peruse them and try

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread Chuck van der Linden
if it's not specific to your company, I think a script like this would make an EXCELLENT addition to the examples in the Watir Wiki. I'd like to strongly encourage you to consider 'sanitizing' what you end up with (removing any company specific stuff) and posting it as an watir code example

[wtr-general] Re: forms in subframes - elements not found

2009-06-05 Thread Chuck van der Linden
install watir becasue it requires a windows environment - or I am I missing somthing here too? please let me know. thanks  a million jason. On 3 Jun., 21:00, Chuck van der Linden sqa...@gmail.com wrote: Hey I know you want to look for the select_list INSIDE the form, (perhaps to verify

[wtr-general] Re: Check div for null return

2009-06-05 Thread Chuck van der Linden
could you just use .exists?==false where you have .exists? On Jun 5, 1:19 am, Jerry Lane lane...@gmail.com wrote: I have the following now: assert(@@ie.div(:class, ext-el-mask-msg x-mask-loading).exists?,Test passes as 'Loading...' is not present on screen) This prints when the assert is

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread Chuck van der Linden
Thanks also from myself, co-worker and company.. We're using the framework (I wish we could have afforded to have you train us) and it's great stuff. I'm sorry it didn't work out, but I think it will be a great contribution to the Watir community as a whole. I hope you enjoy going back to

[wtr-general] Re: Towards migrating to Watir.com

2009-06-05 Thread Chuck van der Linden
On Jun 5, 5:07 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden sqa...@gmail.com wrote: Has Google Code been considered? also Github? Both Google Code and Github have wiki and bug tracking. The problem with changing software

[wtr-general] Re: Towards migrating to Watir.com

2009-06-04 Thread Chuck van der Linden
Has Google Code been considered? they provide a wiki and issue tracking.. also Github? I believe they also have wiki, not sure about issue tracking.. On Jun 3, 9:23 pm, Alister Scott alister.sc...@gmail.com wrote:   Hi Everyone,   I have looked into many options and can't find a free/cheap

[wtr-general] Re: override js confirm FireWatir

2009-06-03 Thread Chuck van der Linden
A thanks for clearing that up. makes a lot more sense now On Jun 3, 2:19 am, aidy lewis aidy.le...@googlemail.com wrote: Chuck 2009/6/2 Chuck van der Linden sqa...@gmail.com: Have you reviewed the general info on the types of popups and how to handle them?  http

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread Chuck van der Linden
Hey I know you want to look for the select_list INSIDE the form, (perhaps to verify it's in the right 'place' within the dom etc) but if the intent is to manipulate the list, and you are able to identify it by ID value, then as a workaround until this problem is corrected, why not just leave

[wtr-general] Re: element search recursive?

2009-06-03 Thread Chuck van der Linden
Think of a frame as an entirely seperate web-page, embedded within another web page. it is such a distinct body that it's really not practical to think of it as a 'nested container' they way you would a div, table, or form. Due to this and other restrictions, many web-devs I know consider

<    3   4   5   6   7   8   9   10   >