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

Issue with test step : Handle 'FileUpload' dialog

5 Answers 215 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bhavin Patel
Top achievements
Rank 1
Bhavin Patel asked on 08 Jun 2015, 08:12 PM

While recording, I used Firefox browser. The recorded steps included uploading a file. My application uses AjaxFileUpload control for file upload.

In the test step, I click on 'Select file', a dialog box appears, I select the required files, press 'open' and then press upload.

While executing, the dialog box doesn't appear even though the test step 'click select file' passes. The test execution hangs at Handle 'FileUpload' dialog step.

I have attached the log and a screenshot of the application. 

This is my application Url - https://ctoweb.ovcr.uic.edu

I went through solutions for similar issues discussed in the forum but they don't seem to work.

5 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 11 Jun 2015, 08:30 AM
Hello,

You are experiencing this behavior due to application specific problem.
The input element is floated to the left when highlighted and since Test Studio clicks in the center of the element by default the click is performed on the wrong place. If you enable the annotations while executing you will see the behavior. For more clarity I've added a screenshot.

In order to overcome this behavior you will have to click on specific point using a blind click as shown in this short video (no audio).

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Bhavin Patel
Top achievements
Rank 1
answered on 11 Jun 2015, 07:25 PM

Hello Ivaylo,

Thank you so much for the inputs. Using blind click and setting the proper offset coordinates I was able to handle file upload.

I am trying this for all my applications and in case if any issues crop up, I will consult you.

Thanks again! I highly appreciate it.

0
Ivaylo
Telerik team
answered on 15 Jun 2015, 03:47 PM
Hello,

I am glad I was able to help.

I am closing this case as resolved now.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
tichuot
Top achievements
Rank 1
answered on 07 Jan 2017, 11:12 AM

Hi Telerik,

I use Telerik to implement a project "webtest" to test some steps.

the website is http://tokiwi.com/. I am stuck at the point "handle Upload dialog". even though I followed the similar situation and its solution in this post, it could not make it through. When I click on the button "Profile Picture",  a new popup is displayed with 

first, then I can click on the profile picture to be able to choose a new photo. At this point, a file up dialog appears....

I also attached pictures as steps and log file so that you can understand my situation better.

can you please tell me how to solve this problem to get successful webtest?

I tried to apply the solution you offered above but there is no pointer or highlight to the specific point so that I can relocate it to the Save button as a chosen specific point.

I hope to get some support from you soon.

 

Thanks

Regards

0
Boyan Boev
Telerik team
answered on 11 Jan 2017, 03:27 PM
Hi,

What version of Test Studio do use?

Could you please also send me the test project so I can reproduce the issue and give you a solution? This will be fastest and easiest way to resolve this.

Thank you!

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Bhavin Patel
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Bhavin Patel
Top achievements
Rank 1
tichuot
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or