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

Pressing the "Back" button in a browser session records but doesn't automate when running test

5 Answers 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bennett
Top achievements
Rank 1
Bennett asked on 20 Mar 2014, 02:15 PM
While recording in IE9 with the latest Test Studio update (2013.2.1327), clicking the "Back" button records as a test step, but it fails the step when running the automated test. Does automation not work with browser actions such as this?

To counteract this problem, I simply tried copying and pasting the previous URL and adding a test step to navigate to that page. However, this step also fails.

For more information, I am clicking on a PDF (which opens in the same tab/window) and then trying to click the back button to return to the page that I am trying to test.

Any help would be greatly appreciated.

Thanks,
Bennett

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 25 Mar 2014, 01:31 PM
Hello Bennet,

Thank you for contacting us.

Unfortunately I am not able to reproduce this issue.

The back button is working correctly during the playback.

Could you please point us to some public site where you can reproduce it so we can try to debug it.

Also please notice that Test Studio cannot connect to or record against a pop-up window that directly loads a PDF file. This is because it does not have a DOM like a traditional web page.

Hope to hear from you soon.


Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Bennett
Top achievements
Rank 1
answered on 07 Apr 2014, 05:53 PM
Hi Boyan,

I apologize for the delay in my response.

I have figured out that my issue was answered with your comment about Test Studio not being able to connect to/record a PDF. The PDF loads in the same window/tab, but the Recorder's inability to record the "Back" navigation action from this page is my problem. Is there a way to get around this? Or will I just have to insert a manual test step?

Thanks,
Bennett
0
Boyan Boev
Telerik team
answered on 09 Apr 2014, 08:05 AM
Hi Bennett,

Could you please try with this coded step:

ActiveBrowser.GoBack();

It will navigate back.

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Bennett
Top achievements
Rank 1
answered on 11 Apr 2014, 12:09 PM
Hi Boyan,

This does work! I appreciate the help!

Thanks,
Bennett
0
Boyan Boev
Telerik team
answered on 11 Apr 2014, 12:31 PM
Hi Bennett,

Glad to hear that!

If you need further help, please let us know.

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