Completed
Last Updated: 20 May 2015 04:47 by ADMIN
ADMIN
Boyan Boev
Created on: 09 Mar 2015 12:35
Type: Bug Report
0
Cannot record against a specific site
Steps to reproduce:

1. Navigate to http://www.basicprimitives.com/index.php?option=com_local&view=local&Itemid=40&lang=en

2. Highlight some of the dots and try to click it.

Actual: Test Studio highlights the entire SVG element and nothing inside it.

Expected: It should be able to click on a particular element inside the SVG file.
6 comments
ADMIN
Daniel Djambov
Posted on: 20 May 2015 04:47
Telerik: I'm sorry for misleading you. We have indeed implemented a fix that recognizes all elements in the DOM on all levels, but in your case the dots are not elements in the DOM. They are implemented as JavaScript events at OnMouseOver action with different coordinates over an image area (which is part of the DOM) and the rest is JavaScript calls. So for such cases about handling JS calls, there are different mechanisms as stated above. You can still use the recording to highlight the parent element and build a step for it from JavaScript Actions, that will be triggered at specific coordinates (where the dots are), but it all be recorded against a single element with different offset for the action to be triggered at. Once again, sorry for the misunderstanding caused.
Tim
Posted on: 19 May 2015 13:48
Sorry, but this doesn’t solve my problem. When I said that my problem was that I need to be able to click on a specific dot and you said that Telerik had implemented a fix which works for my case, my expectations were that I could do what I said that I needed to do. What am I missing?
ADMIN
Daniel Djambov
Posted on: 19 May 2015 07:58
Telerik: I'm sorry for the confusion caused - indeed the individual dots are not recognized with latest release, because the dots are not elements in the DOM. They are part of the parent elements (containing many dots visually), which invoke OnMouseOver JavaScript events for the specific coordinates in them. In order to automate this, which will be very time consuming, you have to use the available functionality to invoke "HoverOver" or "OnMouseOver" event on specific coordinates on the dots inside the element (http://docs.telerik.com/teststudio/troubleshooting-guide/test-execution-problems-tg/invoke-blind-mouse-click). You might also need to invoke some initial javascript on page load (http://docs.telerik.com/teststudio/testing-framework/write-tests-in-code/advanced-topics-wtc/javascript-wtc/invoking-javascript) for the elements to be loaded.
Tim
Posted on: 19 May 2015 00:08
I'm not seeing that the functionality has changed with the 2015.1 release. When I click on one of the dots, the step that is recorded is "Click 'CanvasTag'". The problem is that nothing seems to be referencing the specific dot that I clicked. How do I go about being able to reference a specific dot so that I can click on it when the automated test runs?
ADMIN
Daniel Djambov
Posted on: 18 Mar 2015 16:38
Telerik: we have implemented a fix to recognize all elements that are recognized in the DOM, which works for your case also. the solution will be available in our next product release 2015.1, planned to be out by the end of March 2015.
Tim
Posted on: 13 Mar 2015 21:34
Just to clarify, I want to be able to click on a specific dot. So I want to be able to click on a dot and be able to click on a specific dot as referenced in my test.

Thanks
Tim