Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread Jason
Should this be possible? i.e. rather than specify an *exact* object within the IE, have this 'object' within a variable: code v_type = text_field ie.#{v_type}(:id, emailAddress).flash /code It doesn't work as I have it above. Neither do the following: code ie.{v_type}(:id,

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread Željko Filipin
On 6/28/07, Jason [EMAIL PROTECTED] wrote: Can I actually do this??? Hi Jasnon, I think you can not do that. What do you want to do with that? Maybe there is another way. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread Jason
v_type = text_field ie.#{v_type}(:id, emailAddress).flash I think you can not do that. What do you want to do with that? Maybe there is another way. I simply wanted to loop through a list of objects (text_fields, select boxes, radio buttons, checkboxes, etc) on a page, ensuring each exists

Re: [Wtr-general] Unable to locate object using ie.#{variable}

2007-06-28 Thread hhwwpssp
Hi Jason, Try: v_type = 'text_field' instance_eval(ie.#{v_type}(:id, 'emailAddress').flash) Or: v_type = 'text_field' ie.send(v_type.to_sym, :id, 'emailAddress').flash ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] 'Unable to locate object' problem

2007-05-02 Thread Imran Hussain
Hi, 'Unable to locate object' problem When running the following show_all_objects command, I get; rb(main):016:0 ie.show_all_objects---Objects in page - HTML Document name= id=SN_NOTESSFrame src=textarea name=SN_NOTESSText id=

Re: [Wtr-general] 'Unable to locate object' problem

2007-05-02 Thread Charley Baker
You're trying to write to what appears to be a frame not the textarea. ie.text_field(:name, 'SN_NOTESSText').set('this should work') -Charley On 5/2/07, Imran Hussain [EMAIL PROTECTED] wrote: Hi, 'Unable to locate object' problem When running the following show_all_objects command, I

[Wtr-general] Unable to locate object

2007-04-30 Thread Kui Zhang
Hello, I just started to write a test script below. When run the script, I always received error message: C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists': Unable to locate object. HTML source is attached. What did I missing here? Should I be able to use smokeId to

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Charley Baker
smokeid means nothing in standard dom. You can use :text to identify the control. Watir works off of standard html attributes and the DOM, this is some sort of custom attribute. This should work. ie.button(:text, 'Login').click -Charley On 4/30/07, Kui Zhang [EMAIL PROTECTED] wrote: Hello,

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Kui Zhang
Thanks Charley for the quick response! I tried with your suggestion (ie.button(:text, “Login”).click) and still received the same error message. Here is DOM for the login button. I also tried with the ie.form(:name, “mainForm”).button(:text, “Login”).click. Not working. Anything I can try?

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Charley Baker
Install the latest gem for Watir 1.5.1 and try it again if you can . Here's a link for how to do just that: http://wiki.openqa.org/display/WTR/Development+Builds Follow the instructions on the right pane To Install. -Charley On 4/30/07, Kui Zhang [EMAIL PROTECTED] wrote: Thanks Charley for

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Charley Baker
Yep, we still include autoit. -c On 4/30/07, Kui Zhang [EMAIL PROTECTED] wrote: Hi Charley, Follow your instruction, installed the latest Watir gem. It works now! One question, if I installed the Watir gem, does this include autoit which I need to use in the testing? Or how to check if

Re: [Wtr-general] Unable to locate object

2007-04-30 Thread Kui Zhang
Hi Charley, I installed latest gem, the test case ran fine. Then, I restarted IntelliJ, now when run the test, IE browser is not open. It is the same in the irb command line window. Is there something I need to change? Thanks. Kui ___