[wtr-general] Need Help with Element not found

2011-09-29 Thread Ivan Chung
Hi, i have below HTML that within an iframe, how do i locate the link for the div id = test_002? td class=p_action colspan=1 span class=class A div id=test_001 a onclick=gotofuction(); return false; href=javascript: void(0)Buy/a /div /span /td td class=p_action colspan=1 span class=class A div

[wtr-general] Re: Need Help with Element not found

2011-09-29 Thread Ivan Chung
the iframe that accessing is accurate because i am able to get other elements. See below from where the iframe called iframe id=iframe_canvas class=canvas_iframe_util noresize scrolling=no height=600px frameborder=0 src=javascript: name=xxx style=height: 1457px; overflow-y: hidden; Below are the

[wtr-general] Re: undefined method click_no_wait

2011-09-18 Thread Ivan Chung
Thanks for the reply. At the end i have gave up this click_no_wait and direct use the autoit = WIN32OLE.new('AutoItX3.Control') to send the {enter} key for the js popup -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] How to send sudo su - using net/ssh

2011-09-18 Thread Ivan Chung
Hi, I am able to ssh to the server but having problem to become the root. Pls see below scripts and advise ssh = Net::SSH.start(host, user, :password =) ssh.exec!('sudo su -') ssh.exec!('password') Above scripts does not create any error but it does not switch to root -- Before posting,

[wtr-general] undefined method click_no_wait

2011-09-13 Thread Ivan Chung
Hi folks, i have an error in my scripts that unable to find the solution, hope someone can help. Please refer below for my case: I have a JS popup that i should click on 'OK' but when i put click_no_wait before the check_for_popups() got called, it gives me this error `method_missing':

[wtr-general] Re: Undefined method add_assertion

2010-12-12 Thread Ivan Chung
I could be using the wrong structure but my purpose is actually construct a class that passing an object to perform the assertion check and i am using rspec for reporting in html. objToValidate = ff.link(:text,'Login').exist? val = SomeTest.new() val.Validate(objToValidate) Please advice on

[wtr-general] Undefined method add_assertion

2010-12-09 Thread Ivan Chung
Hi, I have an error: undefined method `add_assertion' for nil:NilClass (NoMethodError) for the following code: require 'rubygems' require 'test/unit' require 'spec/test/unit' class SomeTests Test::Unit::TestCase def initialize(formObject) @object = formObject end def Validate()

[wtr-general] Watir connection to oracle

2010-05-04 Thread Ivan Chung
Hi guys, some quick question here, i will need to connect to oracle database and execute some queries to compare the results. Is there a specif watir scripts to do that or that is ruby code to handle this? Appreciate if there is example provided. Thanks in advance Ivan -- Before posting,

[wtr-general] Re: Watir connection to oracle

2010-05-04 Thread Ivan Chung
Hope that helps, FK On Tue, May 4, 2010 at 11:17 AM, Ivan Chung chun...@gmail.com wrote: Hi guys, some quick question here, i will need to connect to oracle database and execute some queries to compare the results. Is there a specif watir scripts to do that or that is ruby code

[wtr-general] Re: How to detect the a mouseover popup?

2009-06-05 Thread Ivan Chung
change could be failing to work and you'd not detect it (I think)  but it's about the closest I've found. On Jun 3, 1:38 am, Ivan Chung chun...@gmail.com wrote: I just need a value returned, lets say the popup works then return true and vice versa. On Jun 3, 4:36 pm, Ivan Chung chun