mde/flex-pilot — Issue #16: fp_getPropertyValue not working from ruby
Author: toddrothe
Created: 2011-12-09 17:53:04+00:00
State: open

so i'm able to execute this javascript from the firebug console against my app, w/ flexpilot in place, and receive the expected response of "Howdy"

document.getElementById('FlexPilotSample').fp_getPropertyValue({id:'howdyButton',attrName:'label'})

but when i pull this into my ruby test the same javascript statement returns and my assertion fails

assert_equal(@driver.execute_script("document.getElementById('FlexPilotSample').fp_getPropertyValue({id:'howdyButton',attrName:'label'})"), "Howdy")

other scripts from ruby work as expected
@driver.execute_script("document.getElementById('FlexPilotSample').fp_click({id:'howdyButton'})")
@driver.execute_script("document.getElementById('FlexPilotSample').fp_check({id:'howdyButton'})")

any ideas?