[wtr-general] Test if frame exists to avoid locate error (source code)

2010-08-20 Thread pierrelebai...@gmail.com
Hi, I write a little procedure to test if a frame exists before access a object and have an error by locate method if the frames doesn't exist. before having an exists? methode in the next watir version ? def existsFrame(myIe,frameName=) begin if frameName != myFrame =

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Super Kevy
When in doubt you can put some fingerprinting into your code stream to assure your self things are as they seem. You can always use .exists? (hopefully spelled right) to ensure you're seeing what you think your seeing. for example if browser.frame(:id, Main_Body ).exists? then puts ' -

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Chan Nguyen
Hi Kevy, Thanks for your reply. I think frame Main_Body does exists, in fact, it worked for 2 pages but not all. I guessed the other page elements must be hidden or something else, so the frame does not recognize it. When I view the HTML source, it's obvious that 100% of the main body elements

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Chan Nguyen
Hi Kevy again, Initially, I tried text string, but it did not work so I switch to use value. The problem I think is that frame does not have set or select_list method. Anyway, great thanks for your reply. On Aug 20, 6:52 am, Super Kevy kpe...@scholarshipamerica.org wrote: Why are you using the

[wtr-general] Re: unable to access elements in iframe

2010-08-20 Thread chunchu kartheek
html code is very large to post div are having id to them Thanks, Kartheek On Fri, Aug 20, 2010 at 4:18 PM, chunchu kartheek chunchukarth...@gmail.com wrote: hai All, I am new to watir i have code like this div idname1 iframe onload=- html body form name= form1 table tbody tr td

[wtr-general] Unable to connect to oracle by oci8

2010-08-20 Thread Wang, Conglin
Hi groups, When I try to connect to oracle db by oci8,it hints below error: c:/ruby186-26/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2-i386-mswin32/lib/oc i8.rb:52:in `init': OCI Library Initialization Error (OCIError) from

[wtr-general] unable to access element in frame

2010-08-20 Thread chunchu kartheek
Hi All, I have code like this div iframe onload=- html body form id=name table tbody tr td div table tbody tr td here i am checkboxes can anyone help me on how to access those elements html code too large so i couldnot post it here thanks, Kartheek -- Before posting, please read

[wtr-general] [ANN]VTD-XML 2.9

2010-08-20 Thread dontcare
VTD-XML 2.9, the next generation XML Processing API for SOA and Cloud computing, has been released. Please visit https://sourceforge.net/projects/vtd-xml/files/ to download the latest version. a.. Strict Conformance a.. VTD-XML now fully conforms to XML namespace 1.0 spec b.. Performance

Re: [wtr-general] Unable to connect to oracle by oci8

2010-08-20 Thread Basim Baassiri
On Thu, Aug 19, 2010 at 10:24 AM, Wang, Conglin cwa...@statestreet.comwrote: Hi groups, When I try to connect to oracle db by oci8,it hints below error: c:/ruby186-26/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2-i386-mswin32/lib/oci8 .rb:52:in `init': OCI Library Initialization Error (OCIError)

Re: [wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Basim Baassiri
I just tried my suggestion with success with the following page http://overlay-retail-test-files.overlay.tv/watir/watir-group-frame.html Chan, you'll need to provide either the minimum html that causes the ruby exception or a link to the page On Thu, Aug 19, 2010 at 6:04 PM, Chan Nguyen

Re: [wtr-general] Test if frame exists to avoid locate error (source code)

2010-08-20 Thread Ethan
how is this any different than ie.frame(:name, mainFrame).exists? On Fri, Aug 20, 2010 at 04:43, pierrelebai...@gmail.com pierrelebai...@gmail.com wrote: Hi, I write a little procedure to test if a frame exists before access a object and have an error by locate method if the frames

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Chuck van der Linden
it sounds almost like the frame has come disconnected and you need to re-attach. Remember that the objects in your code are pointing at objects in the DOM of the browser. when you create an object in your code like 'main_frame' it's pointing to a specific instance of the object in the DOM that

[wtr-general] Re: Unable to connect to oracle by oci8

2010-08-20 Thread Chuck van der Linden
Or if there is a specific means given for support of the oci8 gem, post your message there. A majority of the folks here will have zero experience using that gem to connect to an oracle db. On Aug 20, 7:54 am, Basim Baassiri ba...@baassiri.ca wrote: On Thu, Aug 19, 2010 at 10:24 AM, Wang,

[wtr-general] Re: unable to access elements in iframe

2010-08-20 Thread Chuck van der Linden
With such generic code the best I can do is give you a similarly generic answer. use the form browser.frame(:how, what).element(:how, what).method 1) to get a useful response, provide more details as to the html that defines the iframe at the very least. and also tell us the specific element

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

2010-08-20 Thread Chuck van der Linden
IOr what about just doing something of the form browser.link(:text, Main) since that appears to be the text associated with the link tag Either one (by URL as Ethan gave, or text as above) is clearer and more direct (and likely faster) than xpath Xpath is good for somethings, but it is not

[wtr-general] Speed/Delay

2010-08-20 Thread ravi
The cheat sheet here(http://wiki.openqa.org/display/WTR/Cheat+Sheet) specifies a parameter called speed for the browser object which can be used to set the browser's speed. However this option seems to be deprecated in the latest version, my browser objects do not have any attributes/methods

Re: [wtr-general] Speed/Delay

2010-08-20 Thread Pallavi Sharma
Hi Which version are you using? It works fine with 1.6.2. Regards Pallavi. On Sat, Aug 21, 2010 at 2:10 AM, ravi rav...@gmail.com wrote: The cheat sheet here(http://wiki.openqa.org/display/WTR/Cheat+Sheet) specifies a parameter called speed for the browser object which can be used to set