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,
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
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
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
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=
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
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
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,
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?
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
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
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
___
12 matches
Mail list logo