How to handle Lightbox with Capybara , Selenium and Cucumber framework?

Posted by Sushil on Stack Overflow See other posts from Stack Overflow or by Sushil
Published on 2012-04-03T05:08:21Z Indexed on 2012/04/03 5:28 UTC
Read the original article Hit count: 293

Filed under:
|
|

Im trying to run test suite that will handle the jquery light-box. Light box contains a text-area and a submit button. Before Light box appears both of these fields are hidden.

But selenium framework not understanding the visibility of these element in Light box. It just shows following error.

And I fill comment box with "Text !!" # features/step_definitions/web_steps.rb:333
  Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotVisibleError)
  [remote server] file:///tmp/webdriver-profile20120403-6182-1rd9z23/extensions/[email protected]/components/command_processor.js:9509:in `unknown'
  [remote server] file:///tmp/webdriver-profile20120403-6182-1rd9z23/extensions/[email protected]/components/command_processor.js:10510:in `unknown'
  [remote server] file:///tmp/webdriver-profile20120403-6182-1rd9z23/extensions/[email protected]/components/command_processor.js:10529:in `unknown'
  [remote server] file:///tmp/webdriver-profile20120403-6182-1rd9z23/extensions/[email protected]/components/command_processor.js:10534:in `unknown'
  [remote server] file:///tmp/webdriver-profile20120403-6182-1rd9z23/extensions/[email protected]/components/command_processor.js:10482:in `unknown'
  (eval):2:in `send'
  (eval):2:in `fill_in'
  ./features/step_definitions/web_steps.rb:335:in `/^I fill comment box with "([^"]*)"$/'
  features/courses_flow.feature:21:in `And I fill comment box with "Text !!"'

© Stack Overflow or respective owner

Related posts about selenium

Related posts about cucumber