11 Answers, 1 is accepted
Make sure you browsers are properly calibrated.
Regards,
Ivaylo
Telerik
Test Studio Trainings
Have you calibrated the browsers? You can also configure them manually as it is described here.
If the issue persists please send us the code you are using as well as the project so we can review it and give you a solution.
Thank you.
Regards,
Boyan Boev
Telerik
Test Studio Trainings
It's not working for IE11, because the download dialog doesn't pop up to the screen therefore the handle download dialog for test studio will not pick it up and do the save as. Must be because of my click link method, I'm finding it by tag name 'a', my link will never have an ID so don't ask for it either. If i manually click the link the dialog will appear and the save handler will work, but if i use my click method, it will appear the dialog at the bottom of the page but the dialog handler will not work and save the file.
var els = document.getElementsByTagName('a');
for (var i = 0, l = els.length; i < l; i++) {
var el = els[i];
if (el.text === 'Complete') {
el.click()
}}​
Could you please try replacing Click with MouseClick:
el.MouseClick()
This will simulate a real user clicking.
Hope to hear from you soon.
Regards,
Boyan Boev
Telerik
Test Studio Trainings
We have our method MouseClick which simulate a real user. You can use this one.
If the issue persists could you please send the project so I can review it and give you a solution.
Thank you.
Regards,
Boyan Boev
Telerik
Test Studio Trainings
If the href has unique value (i.e. file.com is unique) you can find it with that coded step:
HtmlAnchor link = ActiveBrowser.Find.ByAttributes<HtmlAnchor>(
"href=file.com"
);
Let me know if that helps.
Regards,
Boyan Boev
Telerik
Test Studio Trainings
If the anchor has not an unique attribute which can be used for locating it you should create a chained find expression.
Please see this article how to proceed.
Let me know if that helps.
Regards,
Boyan Boev
Telerik
Test Studio Trainings