Forum: RForum [Cucumber] How to resolve error "Element not found in the cache"

Posted by Ketan S. (ketan_s)
on 2011-02-01 13:32
Hi All,

When we try to assert a text on the webpage when the page refreshes, it
throws the below mentioned exception.

Element not found in the cache

remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/resource/modules/utils.js:6483:in
`WebDriverError'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/resource/modules/utils.js:6602:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/driver-component.js
->
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:496:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/driver-component.js
->
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:604:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:265:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:190:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/resource/modules/utils.js:6483:in
`WebDriverError'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/resource/modules/utils.js:6602:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/driver-component.js
->
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:496:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/driver-component.js
->
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:604:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:265:in
`'
[remote server]
file:///tmp/webdriver-profile20110131-19315-wtpd8c/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:190:in
`'
./features/step_definitions/web_steps.rb:124:in `block (2 levels) in '
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:122:in `/^(?:|I )should see
"([^"]*)"(?: within "([^"]*)")?$/'




Can some body please help me out? I guess the handle of the page object
is getting lost.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.