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

HTML popup page and file upload issue

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aung
Top achievements
Rank 1
Aung asked on 08 Nov 2013, 09:56 PM
Hello,

I'm new to the Web UI testing and Telerik software.

I've a few questions regarding the FileUpload and HTML pop-up window.

Here is how I've been recording with Firefox.
1) I've navgiate to a page with 'https://testingthis.com
2) this page has the an attached-file button, which open the pop-up window with https://testingthis.com/upload/fileupload/12345
**this 12345 may change each time doing the test because my colleagues may be attaching files anytime" -> may be 2 min later, it could change to 12347... etc

My issues are
a) When the attached file is clicked and the popup window comes up, the recording does not work on any elements on the pop up page.
b) because the last part of pop-up URL changes, I cannot hard-code it by navigating to that page. I have done that by manually navigating the pop-up URL and tested with the file upload Dialogue and found it working INSTANTLY. since no one has used up my allocation, I find it working.

Anyway to solve this issue?

Thanks in advance for your help.

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 11 Nov 2013, 01:41 PM
Hello Aung,

Yes there is an easy way on how you automate popupURLs that contain a dynamic portion, such as a search query. You will need to alter the Connect to pop-up and Close pop-up windows step properties. For example in your case:

  1. Your Popup URL contains a dynamic query: https://testingthis.com/upload/fileupload/12345
  2. Set IsUrlPartial to True.
  3. Set PopupUrl to: https://testingthis.com/upload/fileupload/

For more details please check the screenshot attached.

Hope this helps.

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