18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Sahi "Object doesn't support this property or method" under IE
Good afternoon!
I got this error when run test under IE :
"Object doesn't support this property or method"
Under all other browsers - all OK. if simplify I do this:
_setFile
_eval
_click
Thats from my log:
_click( _link(0, _in(_byId("tabUploader"))) );
_setFile(_file("picture_file_1"), "D:\\Images\\sunrise.jpg", "upload/file_from_swf?action=upload");
_eval("document.getElementById('"+ "picture_file_1" +"').changeEvent()");
_setFile(_file("picture_file_2"), "D:\\Images\\dock.jpg", "upload/file_from_swf?action=upload");
_eval("document.getElementById('"+ "picture_file_2" +"').changeEvent()");
setServerVar('___lastValue___1303133441899', _isVisible(_link(0, _in(_byId("useInDesignPopupUploadBtn")))));
setServerVar('___lastValue___1303133443537', _isVisible(_link(0, _in(_byId("useInDesignPopupUploadBtn")))));
_click( _link(0, _in(_byId("useInDesignPopupUploadBtn"))));
_click( _div("smallGalleryInTab") );
Object doesn't support this property or method (http://cdn.optimalprint.net/c/js/1303121357/js_y_c/image_loader.js%7Cjs_y_c/design_editor_v3_Common.js%7Cjs_y_c/design_editor_v3_DesignerElement.js%7Cjs_y_c/design_editor_v3_DesignerElementImage.js%7Cjs_y_c/design_editor_v3_DesignerElementText.js%7Cjs_y_c/design_editor_v3_StaticElement.js%7Cjs_y_c/design_editor_v3_StaticElementImage.js%7Cjs_y_c/design_editor_v3_AbstractDesigner.js%7Cjs_y_c/design_editor_v3_Rulers.js%7Cjs_y_c/design_editor_v3_DesignEditor.js%7Cjs_y_c/design_editor_v3_UndoManager.js%7Cjs_y_c/design_editor_v3_ImageEditor.js%7Cjs_y_c/small_gallery.js:292)
I got this error when run test under IE :
"Object doesn't support this property or method"
Under all other browsers - all OK. if simplify I do this:
_setFile
_eval
_click
Thats from my log:
_click( _link(0, _in(_byId("tabUploader"))) );
_setFile(_file("picture_file_1"), "D:\\Images\\sunrise.jpg", "upload/file_from_swf?action=upload");
_eval("document.getElementById('"+ "picture_file_1" +"').changeEvent()");
_setFile(_file("picture_file_2"), "D:\\Images\\dock.jpg", "upload/file_from_swf?action=upload");
_eval("document.getElementById('"+ "picture_file_2" +"').changeEvent()");
setServerVar('___lastValue___1303133441899', _isVisible(_link(0, _in(_byId("useInDesignPopupUploadBtn")))));
setServerVar('___lastValue___1303133443537', _isVisible(_link(0, _in(_byId("useInDesignPopupUploadBtn")))));
_click( _link(0, _in(_byId("useInDesignPopupUploadBtn"))));
_click( _div("smallGalleryInTab") );
Object doesn't support this property or method (http://cdn.optimalprint.net/c/js/1303121357/js_y_c/image_loader.js%7Cjs_y_c/design_editor_v3_Common.js%7Cjs_y_c/design_editor_v3_DesignerElement.js%7Cjs_y_c/design_editor_v3_DesignerElementImage.js%7Cjs_y_c/design_editor_v3_DesignerElementText.js%7Cjs_y_c/design_editor_v3_StaticElement.js%7Cjs_y_c/design_editor_v3_StaticElementImage.js%7Cjs_y_c/design_editor_v3_AbstractDesigner.js%7Cjs_y_c/design_editor_v3_Rulers.js%7Cjs_y_c/design_editor_v3_DesignEditor.js%7Cjs_y_c/design_editor_v3_UndoManager.js%7Cjs_y_c/design_editor_v3_ImageEditor.js%7Cjs_y_c/small_gallery.js:292)
Comments
var errorCount = 0;
do
try {
_click(_div("smallGalleryInTab"));
break;
} catch (e) {
errorCount++;
_wait(1000);
}
} while (errorCount < 3);
I mean, actions that must occurs after clicking on that button - occurs, but sahi still try to do:
_click( _div("smallGalleryInTab") );
And not die by timeout.
Let me remind, that this things happens under IE only.
Could you try
_mouseDown( _div("smallGalleryInTab") );
instead of
_click( _div("smallGalleryInTab") );
?
Regards,
Narayan
And by the way _mouseDown not work at all for me - not only at this button.
Problem not in
_click( _div("smallGalleryInTab") );
but in:
_click( _link(0, _in(_byId("useInDesignPopupUploadBtn"))));
_mouseDown( _span("Shop for business") );
Nothing happens.
A _click consists of _mouseDown _keyPress and _mouseUp.
Sometimes one of them may work better than the other. Generally it is very dependent on the js implementation code of the web app. So _mouseDown not working for your link may not be related to the span problem. We will be making an open source release within a couple of days, so you should be able to use _click on your page (which actually works with _mouseDown for us on IE8, FF4 and Chrome10)
Regards,
Narayan
Thanks.