Instead of .click, try .fire_event("onclick"). I don't believe the div element has the .click method.
On Saturday, March 31, 2012 10:41:37 PM UTC-7, srinivasarao jyothi wrote: > > Hi There, > > I am facing so many problems when i am trying to convert my code to > suite webdriver. Please help me out in this. > > > When i tried the following in webdriver > > irb(main):028:0> F=ie.div(:index=>62).attribute_value("class") > => "dhtmlxMenu_dhx_blue_SubLevelArea_Item_Normal" > > irb(main):030:0> P=ie.div(:index=>62).attribute_value("id") > => "X3iT2RR1kxsG9" > > irb(main):031:0> ie.div(:class=>F,:id=>P).exists? > => true > irb(main):034:0> ie.div(:class=>F,:id=>P).click > > > Timeout::Error: Timeout::Error > from E:/Tech/Ruby192/lib/ruby/1.9.1/net/protocol.rb:140:in > `rescue in rb > uf_fill' > from E:/Tech/Ruby192/lib/ruby/1.9.1/net/protocol.rb:134:in > `rbuf_fill' > > > Even to login my application also with web-driver i am facing timeout > error. > > The same code is working in watir 2.0 > > The biggest problem i am facing is that .click is not working any > where using web driver. mine is fully java script based application. > > Is there any way to escape this time out error. it is annoying me > every where. > > Please help me out on this. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com