How to test a JavaScript-based application, for example Ember.js with Selenium 2? -
i have created javascript based application, powered ember.js framework. now, i'd create selenium 2 tests application. however, have encountered following problem:
the test supposed to interact button or input field not present on page default. in other words, there ember.js view displayed after action. anyway, when perform action , enter desired view.
then, want click button in test, such follows (selenium 2 test in php):
$button = $this->byid("mybutton"); $button->click();
unfortunately, following error:
phpunit_extensions_selenium2testcase_webdriverexception : element not visible , may not interacted
is because ember.js (or other javascript tool) inserts code dynamically? tried sleep second or 2 before performing click action, did not help.
how can solve issue , test javascript client-side app (written in ember.js in case) selenium 2?
Comments
Post a Comment