Inconsistence Execution of Watir-Web Driver? -
i've written ruby script test application. seems executing without error. when executing same code next time however, execution not working expected , throws error. why behaving this?
the error:
[remote server] file:///c:/users/raghun~1/appdata/local/temp/webdriver-profile20140818-5504-b2tdgg/extensions/fxdriver@googlecode.com/components/driver_componen t.js:9470:133:in `firefoxdriver.prototype.findelementinternal_': unable locat e element: {"method":"tag name","selector":"body"} (selenium::webdriver::error:: nosuchelementerror)
also overcome issue tried watir::always_locate = true
not working. missing gem files? can 1 provide suggestion?
based on "unable locate element" error you're experiencing, if you're using watir manipulate elements i'd try applying ".wait_until_present" or ".when_present" see if it's case of step in question executing quickly. hope helps! let know!
Comments
Post a Comment