This is a migrated thread and some comments may be shown as answers.

Handle File Upload Dialog in Chrome

3 Answers 190 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lynsey
Top achievements
Rank 1
Lynsey asked on 19 Sep 2011, 10:36 AM
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

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 19 Sep 2011, 01:11 PM
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
0
Lynsey
Top achievements
Rank 1
answered on 19 Sep 2011, 02:08 PM
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.
0
Stoich
Telerik team
answered on 19 Sep 2011, 04:21 PM
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
Tags
General Discussions
Asked by
Lynsey
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Lynsey
Top achievements
Rank 1
Share this question
or