Forum Discussion

sastowe's avatar
sastowe
Super Contributor
13 years ago

SVG Viewer by Adobe

I don't know how much detail I need to give to get this question asnwered. So I will start here. I have a VB 6 app that has a webBrowser control on a form. withint the web page that is displayed to the user there is an SVG (scalable vector graphic) that is displayed using Adobe SVG Viewer.



Within that graph are points on a line chart that the user can click on. I would like to be able to get to those points programatically in script.



Does anyone know how/if I can get into an SVG Viewer object and its internals?



Thanks



S

4 Replies


  • Hi Stephanie,


     


    How does TestComplete recognize the control? Can you see it in the Object Browser panel?


     

  • sastowe's avatar
    sastowe
    Super Contributor
    Pardon my slow response and ignorant lack of information. I am new to web test automation. It does not look as though Test Complete recognizes the object.  I can identifiy a frame onject that contanis the SVG. The object spy identifies it of type "image/svg+xml".



    So here is a screen shot of the frame with the svg within it. You can see a chart. Each of the data oints on the chart are clickable. The little window within the frame is resizable and movable.



    The KEY thing for me is to be able to click a data point somehow. SVG is supported natively in Firefox. But one needs a plug in for some versions of IE. I don't care what browser I test it in. I am not interested in browser testing so much as that the math in the chart works right.



    Any help is greatly appreciated.

  • Hi Stephanie,


     


    Thanks for the details. Actually, clicking an object on the chart is not a very simple task for TestComplete. I suppose you will have to create your own script for this and create an algorithm that will somehow calculate the object that has to be clicked (this will be related to IDs used for these objects). Would you like to try using the Region Checkpoint to compare the stored chart with the actual one? This approach will be much easier.


     

  • sastowe's avatar
    sastowe
    Super Contributor
    Thanks for the details. Actually, clicking an object on the chart is not a very simple task for TestComplete.



    Trust me. I believe it.



    I suppose you will have to create your own script for this and create an algorithm that will somehow calculate the object that has to be clicked (this will be related to IDs used for these objects).



    When I view source on the page, there is no dicernable object. I was expecting an <SVG tab... It looks like the RAD tool that the developers used to create this page creates javascript procedures that generate the SVG on the page.





    Would you like to try using the Region Checkpoint to compare the stored chart with the actual one? This approach will be much easier.



    I am not so much trying to checkpoint the graph, though that will provide some benefit.  Clicking on a point in the graph causes other tables on the page to display. (I did not include the remainder of the page in my screen shot since it was not to the point.)



    I think my next course of action is to work in with the developer to determine how I can get access to the point.  Thanks.



    Stephanie