Handle File Upload Dialog in Chrome

4 posts, 0 answers
  1. Lynsey
    Lynsey avatar
    4 posts
    Member since:
    Jun 2011

    Posted 19 Sep 2011 Link to this post

    I have recorded a test in IE9 and when I try to execute it in Chrome the test fails at step 2 for the Handle File Upload dialog.  I tried increasing the timeout as this appears to be the reason for the failure.  I can play it back in IE9 without any errors.  I've attached the failure log for info.  Any ideas?

    Thanks
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 19 Sep 2011 Link to this post

    Hi Lynsey,
        it seems to me that the problem might be that the Dialog is not triggered in Chrome. Try this:
    Find the step that is supposed to trigger the Upload Dialog (it's probably a Click step). From its Properties windows set it to SimulateRealClick=true (screenshot 1). Re-run the test and see whether it works correctly now.

    You can also try upgrading to the latest internal build (829). You can download it from your Telerik account.

    Greetings,
    Stoich
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Lynsey
    Lynsey avatar
    4 posts
    Member since:
    Jun 2011

    Posted 19 Sep 2011 Link to this post

    Hi,

    Thanks for the quick reply.  The previous step doesn't seem to be a click step so I couldn't select 'simulate real typing' for only that step.  However I selected it as the default as part of the project settings & it seems to be getting a bit further.  It opens the dialog box now but doesn't seem to be able to pick up the file I have selected to upload (executing in IE picks up the file without any issues).

    The previous step in my test is 'RadAsyncUpload('ctl00_BodyContent_updDocument'): upload file 0'.  I've double checked the file location for this step & its definately correct.
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 19 Sep 2011 Link to this post

    Hello Lynsey,
        I didn't realize you were working with a Telerik RadControl. As far as I can tell you're using a RadAsynchUpload control similar to the one in this demo:
    http://demos.telerik.com/aspnet-ajax/upload/examples/async/webmail/defaultcs.aspx
    Is this correct?

    Working with Telerik RadControls is a bit different than just recording against plain HTML/Silverlight because we have our own translators that allow enhanced recording functionality. I have managed to confirm a couple of bugs related to working with AsynchUpload in Chrome:
    http://www.telerik.com/support/pits.aspx#/public/test-studio/7890
    http://www.telerik.com/support/pits.aspx#/public/test-studio/7893

    I was able to work around the issue by clicking the Upload button with a blind mouse click:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/invoke-blind-mouse-click.aspx
    and manually adding an Upload Dialog Handler as a step. Check out the attached test.

    Greetings,
    Stoich
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top