[wtr-general] Re: problem with Watir gem 1.9.2

2011-08-12 Thread Jarmo Pertman
Do you experience the same problem with Watir 2.0 too? Jarmo On Aug 12, 11:29 pm, AMXStephen wrote: > I've run into similar problems not drilling into the html enough with > similar commands I think.  between '' and > '.radio(foo)' try finding a good frame or div within the html and > specify it

[wtr-general] Re: How to change select_list box value ?

2011-08-12 Thread Chuck van der Linden
I'm confused, that snippet of html you give below with the span element appears nowhere in the HTML that you provided in your first message in the thread. Perhaps if you provided a bit more HTML where this span element is considered? Is this some kind of javascript powered control that implements

[wtr-general] Re: how to locate a table which has no attribute

2011-08-12 Thread Chuck van der Linden
I was about to ask how you know what cell to click when doing this manually, if you were going off the contents of the cell or something, but it's looking like you got that figured out, and also that it wasn't looking for click, but a mouseover.. On Aug 12, 1:50 am, lifeng jiang wrote: > well,I f

[wtr-general] Re: Need Javascript Tree Help: Clicking on the plus/minus icons to expand

2011-08-12 Thread Chuck van der Linden
is it possible the script is just going too fast for the client side javascript to keep up? does it work if you click the links via running the applicable script step 'manually' via IRB? Maybe put a one second sleep in your loop and see if that makes a difference? On Aug 11, 11:11 am, andy thai

[wtr-general] Re: popup blocker is messing with my scripts

2011-08-12 Thread AMXStephen
Try writing it like this: browser.div(:id => "myIntLink").link(:text => "My Link").click It may work for ya! On Aug 5, 1:34 pm, Anne wrote: > I forgot... > here's the html for the link > > > > My Link > -- Before posting, please read http://watir.com/support. In short: search before you a

[wtr-general] Re: Need file_field assistance

2011-08-12 Thread enroxorz
Hey Jarmo, I tried the ENV change and I am still getting the same issue. I am reverting back to WATIR 1.8.1 to see if it is an issue with my scripts. I'll get back to you when I get more info... Thanks --Enrique On Aug 12, 9:55 am, watirboy wrote: > Hey Jarmo, > > Thanks for the reply > > Here

[wtr-general] Re: problem with Watir gem 1.9.2

2011-08-12 Thread AMXStephen
I've run into similar problems not drilling into the html enough with similar commands I think. between '' and '.radio(foo)' try finding a good frame or div within the html and specify it and its id to be more specific for watir. I talk about something similar here: http://evilmathemagician.blo

Re: [wtr-general] Re: Post form not on the page

2011-08-12 Thread Dmitriy Korobskiy
On 8/6/11 1:33 PM, Rahul Sharma wrote: Thanks for the information there Dimitry and Chuck. I forgot to add one thing in my post. The form I am talking about is a form that has been created by a developer to assist automated testing. In real world, users of our website will see a promotion somew

[wtr-general] Re: Right click and element

2011-08-12 Thread AMXStephen
Look up AutoIt, you can run it alongside your Watir script and it is what I have used when Watir couldn't see certain buttons embedded within our website (something to do with Javascript or something). Although a right click I don't know, but you might get lucky. There is some more information her

[wtr-general] Re: Need to test one scenario more than one times with different value in list box as well as in text box.

2011-08-12 Thread AMXStephen
You will definitely need a 'for loop' for every pass, there is a random number generator for Ruby that you will have to do some research on, and for the 'list box' you will need to draw out each value. I would suggest learning a bit more Ruby to tackle this problem you have, and perhaps giving som

[wtr-general] IE 9 execute_script broken

2011-08-12 Thread Michael
Hello, I am recently trying to run our tests on IE 9, and am running into the following error. It occurs both with Watir 1.9.2 and 2.0.1, does anyone have a solution? We are using Ruby 1.9.2. We have extended the Waitr Element as follows (and with similar code for deny): module Watir clas

[wtr-general] Re: Need file_field assistance

2011-08-12 Thread watirboy
Hey Jarmo, Thanks for the reply Here is the error I am getting. It is a timeout error with RAutomation. timed out after 60 seconds (RAutomation::WaitHelper::TimeoutError) It happens sporadically through out the script. Thanks for the ENV variable. Let me try this and get back to you to see if

[wtr-general] Re: Help on Watir scripts

2011-08-12 Thread Super Kevy
Cut my self off to quick. http://w3schools.com/tags/tag_link.asp The tag: must appear in the head not the body of html document Example Link to an external style sheet: When used for style sheets, the tag is supported in all major browsers. No real support for anything else. Why is develop

[wtr-general] Re: Help on Watir scripts

2011-08-12 Thread Super Kevy
just what is the element link its not the html element anchor Stuff. That would explain it. Consider element_by_xpath Try these links for some info: http://wiki.openqa.org/display/WTR/XPath http://angrez.blogspot.com/2006/06/xpath-and-watir.html Consider refreshing what makes up html: http://w

[wtr-general] Re: Need file_field assistance

2011-08-12 Thread Jarmo Pertman
Does it fail for you consistently or does it handle some of the file fields and then fail? Do you see any error messages after some period of time (default is 60 seconds)? Try to use AutoIt adapter to see if that makes any difference. Add this line before your #file_field.each line: ENV["RAUTOMATI

[wtr-general] Re: how to locate a table which has no attribute

2011-08-12 Thread lifeng jiang
I shoud't use a string,that's right,thank you On 8月11日, 下午9时09分, joedio wrote: > The code is incorrectly specifying the index as a string not an > integer. > > Thus > @utable=ie.div(:id,"mainContainer").table(:index,"2") > should be > @utable=ie.div(:id,"mainContainer").table(:index, 2) >

[wtr-general] Re: how to locate a table which has no attribute

2011-08-12 Thread lifeng jiang
well,I found that the problem is cell dosn't has "click" measure,and the cell has text attribute,so I use a js function "fire_event",that can work ie.cell(:text,"").fire_event('onMouseOver') thanks On 8月11日, 下午9时09分, joedio wrote: > The code is incorrectly specifying the index as a stri

[wtr-general] Re: How to send text to a CKEditor WYSIWYG editor box using Watir-WebDriver?

2011-08-12 Thread Alister Scott
Thanks to everyone who helped. I have worked it out and updated my blog: http://watirmelon.com/2011/08/12/automate-entering-text-into-wysiwyg-editors-using-watir-webdriver/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegr