[wtr-general] Re: Object no longer attached to the DOM error on doing a exists call

2011-08-15 Thread Jarmo Pertman
Nice. Alister's blog post seemed to tell differently. Jarmo On Aug 14, 3:15 pm, Jari Bakken jari.bak...@gmail.com wrote: It is enabled by default. Den 14. aug. 2011 kl. 10:44 skrev Jarmo Pertman jarm...@gmail.com:i I'd even vote this to be enabled by default :) Jarmo On Aug 14,

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

2011-08-15 Thread Rahul Sharma
Hi Dimitry, The reason I wanted to submit a local form is that I can not simulate user clicks as part of the tests. The form in the question is: htmlhead meta http-equiv=content-type content=text/html; charset=ISO-8859-1 /headbodyform name=input action=

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

2011-08-15 Thread orde
Does this work (from http://rdoc.info/gems/watir/2.0.1/Watir/Form)? browser.form(:name, input).submit Hope it helps. orde On Aug 15, 7:48 am, Rahul Sharma rahulsharma@gmail.com wrote: Hi Dimitry, The reason I wanted to submit a local form is that I can not simulate user clicks as part

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

2011-08-15 Thread Dmitriy Korobskiy
On 8/15/11 3:57 PM, orde wrote: Does this work (from http://rdoc.info/gems/watir/2.0.1/Watir/Form)? browser.form(:name, input).submit Hope it helps. orde On Aug 15, 7:48 am, Rahul Sharmarahulsharma@gmail.com wrote: Hi Dimitry, The reason I wanted to submit a local form is that I can

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

2011-08-15 Thread Rahul Sharma
I have tried it already but won't work as the form is not on the page. So browser won't know what form it is!! On 15 Aug 2011, at 20:57, orde wrote: Does this work (from http://rdoc.info/gems/watir/2.0.1/Watir/Form)? browser.form(:name, input).submit Hope it helps. orde On Aug 15,

[wtr-general] How do I select the second identical table?

2011-08-15 Thread Dmitriy Korobskiy
I'm somewhat stumped trying to select the second table out of multiple identical tables on the page in Watir 2.0.1. It should be simple, right? In Watir-WebDriver: carts = @browser.*tables*(:xpath = table_xpath(carts))[1] # works carts = @browser.*table*(:xpath = table_xpath(carts), :index =

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

2011-08-15 Thread Dmitriy Korobskiy
On 8/15/11 6:11 PM, Rahul Sharma wrote: I have tried it already but won't work as the form is not on the page. So browser won't know what form it is!! Two questions: 1. Why can't you drive the original application itself? (no local form) If there are some serious reasons for not being able

[wtr-general] [Watir-Webdriver] Carriage Returns

2011-08-15 Thread hillary
I have a text area that allows the user to copy and past from a file values that are separated by a carriage return like this: a b c In watir, this code worked: b.text_field(:id, x).set(a b c) But when i tried this in web-driver it doesn't anymore. It enters text but the values are no