jnyman/lucid — Issue #1: Unable to click buttons by value (Selenium)
Author: jnyman
Created: 2012-02-03 20:19:27+00:00
State: open
Labels: Bug

See button.feature; scenario "Referencing buttons by locators".

The value item in the table works fine for Watir but does not for Selenium. The following error is returned:

cannot find element by :value (ArgumentError)
./lib/lucid/platform_selenium/platform_object.rb:175:in `block in click_button_for'
./lib/lucid/platform_selenium/platform_object.rb:192:in `access_web_object'
./lib/lucid/platform_selenium/platform_object.rb:174:in `click_button_for'
./lib/lucid/generators.rb:75:in `block in button'
./specs/steps/button_steps.rb:19:in `/^the click me button can be clicked$/'
specs\tests\button.feature:18:in `Then the click me button can be clicked'

There is a selenium_selectors addition (in button.rb under the general web objects) to accommodate the value locator.