I’m testing an Extjs application in selenium and I need to run a Script to set the value of the combo box. I’ve tried getEval command with target
var combo=Ext.getCmp('combobox name'); combo.setValue('4'); combo.fireEvent('select');
but I’ve got the following error:
[error] Threw an exception: Ext is not defined
can anyone help me please?
what about jsExecutor?
if any other exceptions thrown – try debug step by step in IDE you work
also look here in Executing JavaScript from Your Test section:
JavaScript comes very handy in exercising an application which is not directly supported by selenium. The getEval method of selenium API can be used to execute JavaScript from selenium RC.
or another example:
Hope this helps you