> > I am having the same issue when running my script saved in a .rb file, but > the hover and click steps work for me when I run them manually in the > command prompt. I was relieved to at least find the commands to hover and > then click (thanks Željko!), but how can this work manually yet not work > when I run the whole .rb file? Is it needing an additional few seconds > (i.e. a wait command or something) between browser.a(:text => > "About").hover and browser.a(:text => "The Team").click ? I would love > to get over this hurdle as all of my reports and tools that need QA testing > are behind menus such as this. Thanks in advance!
Matt On Tuesday, July 24, 2012 3:08:34 AM UTC-5, gajendra wrote: > > I get the following error for the code mentioned below > > > Uncaught exception: Cannot click on element > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/response.rb:52:in > > `assert_ok' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/response.rb:15:in > > `initialize' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/common.rb:59:in > > `new' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/common.rb:59:in > > `create_response' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/default.rb:64:in > > `request' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/common.rb:40:in > > `call' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/bridge.rb:598:in > > `raw_execute' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/bridge.rb:576:in > > `execute' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/bridge.rb:358:in > > `clickElement' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/common/element.rb:54:in > > `click' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.5.8/lib/watir-webdriver/elements/element.rb:108:in > > `click' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.5.8/lib/watir-webdriver/wait.rb:86:in > > `method_missing' > C:/WATIR_FRAMEWORK/Scripts/Scr_hover_ex.rb:68:in `<top (required)>' > C:/Ruby193/bin/rdebug-ide:23:in `load' > C:/Ruby193/bin/rdebug-ide:23:in `<main>'Run options: > > On Tue, Jul 24, 2012 at 1:08 PM, Gajendra Jain <[email protected]>wrote: > >> Hi, >> >> I tried the code as mentioned below IE. >> >> Only "Hover" part is working fine. but the sub links are not getting >> clicked. >> >> Any help please. >> >> Regards, >> Gajendra >> >> >> >> >> On Wed, Jul 11, 2012 at 6:38 PM, Željko Filipin <[email protected]>wrote: >> >>> On Wed, Jul 11, 2012 at 3:00 PM, Gajendra Jain <[email protected]> >>> wrote: >>> > Uncaught exception: Cannot perform native interaction: Could not load >>> native events component. >>> >>> Disable native events then: >>> >>> profile = Selenium::WebDriver::Firefox::Profile.new >>> profile.native_events = false >>> Watir::Browser.new :firefox, :profile => profile >>> >>> More info: >>> >>> http://watirwebdriver.com/firefox/ >>> >>> Željko >>> >>> >>> -- >>> Before posting, please read http://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> [email protected] >>> http://groups.google.com/group/watir-general >>> [email protected] >>> >> >> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
