RadFileExplorer with EnableAsyncUpload

2 posts, 0 answers
  1. Ashish
    Ashish avatar
    7 posts
    Member since:
    Jun 2012

    Posted 23 Nov 2012 Link to this post

    I have a page with RadFileExplorer and EnableAsyncUpload="true" option. We are using selenium tool for automation testing. But we are not able to perform "click" option with EnableAsyncUpload option.

    If i remove EnableAsyncUpload option then i am able to do it.

    Our findings are as below
    ---------------------------------------------------------------------------------------------

    1) There are 2 separate objects, a "text" and a "button"  manually clicking on which the Select File window opens. However, through Select IDE and Selenium RC, on performing click on these objects, the Select File window does not open, due to which AutoIT is unable to select the file to upload. This looks to be more of a selenium issue that though the Click action is executing successfully, the click event is not getting fired and the Select File Window is not invoked.

    I am able to perform a "type" in the text box.However, the file is not uploaded by doing a type as your application does not support that.

    2) Using the IE developer tool, it is highlighting the file object as below

                   <OBJECT style="OUTLINE-STYLE: none; OUTLINE-COLOR: invert; OUTLINE-WIDTH: 0pt; WIDTH: 100%" id=ctl00_BodyContent_FileExplorer_asyncUpload1flash010 class=ruObject tabIndex=-1 data="/WebResource.axd?d=fM8n8mufwaYAdyK9bnynX5Wn47jvXke8iOMZ_ZStmCnM1bULR6bY0YLeP07v4HddNqGy_TB-zp3JF322tlXRhdAuS5pvAT1tz_SSdoa36qh9eBXYTd1gcKF-tJC8bfmPYbJBTE_Kt8mQoALLyvR9XPA32SbcoMKjJe_pbWbJu0QS1ni81X8-Vi_6J6-CUY-70&amp;t=634770601240000000" type=application/x-shockwave-flash height=22></OBJECT>

    Usually, to upload a file, the html input object used is of the "type=file" which I dont see in the above object.
    Request you to have a word with your dev team and let us know if this object is a flash component   (Notice the "type" attribute).

    --------------------------------------------------------------------------------------------

    can anybody please provide any input?
  2. Joana
    Admin
    Joana avatar
    205 posts

    Posted 28 Nov 2012 Link to this post

    Hi Ashish,

    Selenium  can’t interact with popup dialogs. For more information you can review the following article Selenium FAQ . See the details under:  I can't seem to use Selenium Core to upload a file; when I try to type in the file upload text field, nothing happens!
    I hope you will find it helpful.

    However, Telerik offers third-party solutions for more effective test automation of the Rad Controls:
    1. The free Telerik Testing Framework which helps you automate AJAX, Silverlight and WPF applications using coded steps.
    2. WebUI Test Studio which has the options to record, execute and debug functional tests with the Visual Studio environment.
    Both solutions provide wrappers/translators for each RadControl. These are integrated adapters, specially designed for automatically identifying the control and expose it's API for the purpose of functional testing.

    If you have further questions, don’t hesitate to contact us.

    Regards,
    Joana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top