Re: [Wtr-general] eba:Combo

2006-08-15 Thread Marco
FYI combo = ie.ie.document.getElementById(id).object combo.SetTextValue(value) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3510messageID=9955#9955 ___

[Wtr-general] ruby_testing_techniques

2006-08-15 Thread Adrian Lewis
Hi, The London Ruby User Group have hoisted up a site of Ruby presentations. Two that may be of interest to us are: 1) ruby_testing_techniques 2) ruby_dsl_presentation_tiest_2006 http://svn.lrug.org/lrug_sandbox/presentations/ aidy

[Wtr-general] Regex string comparison

2006-08-15 Thread Paul Carvalho
Hi there, I'm still a novice when it comes to using regular expressions and am having a bit of difficulty figuring out the syntax on the following problem.Here's what I want to do:- I'm trying to create a branch in the code if the PageHeadingLabel contains one of two words. Here's the line that

Re: [Wtr-general] Regex string comparison

2006-08-15 Thread Paul Carvalho
Sweet! Worked like a charm. Thanks. Learned something new today. I guess I can go home now. ;-)Cheers! Paul.On 15/08/06, Dave Hoover [EMAIL PROTECTED] wrote:Yep, use the String#match method. http://www.ruby-doc.org/core/classes/String.html#M000583 ___

Re: [Wtr-general] Regex string comparison

2006-08-15 Thread Bret Pettichord
Paul Carvalho wrote: if t_ie.span(:id, /PageHeadingLabel/).text.include?( /Create|Update/ ) the include? method is for strings, not regular expressions. Try: if t_ie.span(:id, /PageHeadingLabel/).text.match( /Create|Update/ ) or if t_ie.span(:id, /PageHeadingLabel/).text =~ (

[Wtr-general] Using regular expressions in Watir

2006-08-15 Thread Astha Raj
Hi all, I am new to Watir and Ruby. I saw the document (which is really good, btw) and it talk about one scenario of using regular expressions like below. ie.link(:url, /shtml/).click This one, I believe, will look for the term in a string. What I need do to only look for the

Re: [Wtr-general] Using regular expressions in Watir

2006-08-15 Thread Dave Hoover
On 8/15/06, Astha Raj [EMAIL PROTECTED] wrote: What I need do to only look for the string which ends with the given section. For example, I have two form fields with id like FormName_Name1 and FormName_Name1New So when I use the Watir statement like –

Re: [Wtr-general] Using regular expressions in Watir

2006-08-15 Thread Jeff Wood
Dave Hoover wrote: On 8/15/06, Astha Raj [EMAIL PROTECTED] wrote: What I need do to only look for the string which ends with the given section. For example, I have two form fields with id like FormName_Name1 and FormName_Name1New So when I use the Watir statement like –

[Wtr-general] Setting Textbox throws unknown method 'scrollIntoView' error

2006-08-15 Thread James
I am running watir 1.5.1.1065 I am simply calling set on a text_field, and I get this error: WIN32OLERuntimeError: Unknown property or method `scrollIntoView' HRESULT error code:0x80010004 The caller is dispatching an asynchronous call and cannot make an outgoing call on behalf of

Re: [Wtr-general] Setting Textbox throws unknown method 'scrollIntoView' error

2006-08-15 Thread James
im calling ie.text_field(:name, /name/i).set(blah) HTML of textfields is: tr valign=middle td width=85User Name/td td width=100input name=ctl00$ContentPlaceHolderContentMain$UserName type=text id=ctl00_ContentPlaceHolderContentMain_UserName //td td

Re: [Wtr-general] Setting Textbox throws unknown method 'scrollIntoView' error

2006-08-15 Thread James
note, getting the textfield by id, without a regex. works fine. -Mase (james) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3607messageID=10005#10005 ___

Re: [Wtr-general] Setting Textbox throws unknown method 'scrollIntoView' error

2006-08-15 Thread James
This appears to be a larger problem. Any element that is found with a regular expression passed as the value. Seems subsequent messages to that object results in the above error. IE crashes as well. -Mase - Posted via Jive Forums