jnyman/lucid — Issue #2: Unable to click links by href (Selenium)
Author: jnyman
Created: 2012-02-04 07:42:53+00:00
State: open
Labels: Bug

See link.feature; scenario "Referencing links by locators".

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

undefined method `keys' for nil:NilClass (NoMethodError)
./lib/lucid/web_objects/_common.rb:30:in `have_selenium_find_object_with'
./lib/lucid/platform_selenium/platform_object.rb:206:in `get_platform_locator_for'
./lib/lucid/platform_selenium/platform_object.rb:196:in `access_web_object'
./lib/lucid/platform_selenium/platform_object.rb:141:in `click_link_for'
./lib/lucid/generators.rb:99:in `block in link'
./specs/steps/link_steps.rb:41:in `/^the avengers link can be clicked$/'
specs\tests\link.feature:35:in `Then the avengers link can be clicked'

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