[wtr-general] Re: click on html element

2010-08-18 Thread TCBlues
So it is not possible to access using something like brow.element(:id,xxx) or brow.object(:id,xxx) or something similar. The only way is to know before hand what kind of tag we'll be accessing. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

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

2010-08-18 Thread Chuck van der Linden
how in the world would I know what URL you need to use? it's your app not mine. And you've never shared the URL with us. I'm good, but I'm not a mindreader You can attach using either the URL of the page the window is currently displaying or the Title of the page For URL look at the 'address'

[wtr-general] Regression in watir

2010-08-18 Thread nix
Iam new to watir and would like to maintain regression tests. If one can suggest me to create a batch file or any tool that cn be referred? Thanks Nix -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are

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

2010-08-18 Thread Ethan
Mandadi, You need to share the code you are using, and if html is required to demonstrate an error, preferably a minimal snippet of html (do not paste several thousand lines of html into your email as some people have done). see the guidelines: http://wiki.openqa.org/display/WTR/Support On Wed,

Re: [wtr-general] Re: Does anybody have experience to run ruby watir script in a cgi script?

2010-08-18 Thread chengfeng han
Hi, Bill, I found the problem, I first put runner on G:\Documents and Settings\Administrator\My Documents\runner I saw some errors ruby G:\Documents and ., Could not access G:\Documnets and ... Wed Aug 18 12:19:54 -0400 2010: Read error: #Errno::ECONNABORTED: An establishe d connection was

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

2010-08-18 Thread Ethan
I don't think that you should be using element_by_xpath at all. It does not return a Watir::Element. You should use a normal element accessor with the :xpath specifier: ie.area(:xpath, //whatever/).click On Wed, Aug 18, 2010 at 13:18, goutham mandadi goutham.mand...@gmail.comwrote: Hai

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

2010-08-18 Thread jasbro
In the jQuery world, it isn't uncommon for me to dynamically add classes to an element. Depending on various circumstances, the class of a div might be something like amount or amount required or amount required invalid. In my particular situation, the problem is compounded by the fact that my

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

2010-08-18 Thread Eric Mathiesen
When I run into this I use :index, # On Aug 18, 2010 2:52 PM, jasbro jas...@gmail.com wrote: In the jQuery world, it isn't uncommon for me to dynamically add classes to an element. Depending on various circumstances, the class of a div might be something like amount or amount required or amount

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

2010-08-18 Thread jasbro
After I posted this question, I started thinking that the best solution would be if I could use a regular expression to select the element: @browser.div(:id,/^amount_.*/) or @browser.div(:class,/.*amount.*/) So I tried it, and it worked for both Firefox and IE. This may just be a benefit of