Vis.js graph testing using TestComplete
Hello everybody!
I'm working on a piece of software that has vis.js graphs implemented. The most I can get from non-calculated fields is the X and Y offset as they are represented in the vis.js graph itself, so -250, -50 with 0,0 being the center of the graph. Does anybody know any way to get TestComplete to be able to recognize the offsets at the very minimum, or any other more efficient way of testing a graph?
By default it's clicking at the pixel coordinates I pass into Click or HoverMouse, so -250, -50 is off the graph when I try to FindElement on the graph element, then pass in those coordinates to Click or HoverMouse. The other issue is that I can't use pixel coordinates because we want this to run on multiple computers if possible, so the pixel coordinates would be different on each, causing unexpected actions.
Hi,
I took a look at the example provided at https://visjs.org/ (https://visjs.github.io/vis-timeline/examples/graph2d/16_bothAxisTitles.html) and examined example's markup. The sample graph is implemented via <svg> web element which makes me doubting that you will be able to access internals of svg element using standard means of TestComplete (see my reply at https://community.smartbear.com/t5/TestComplete-Functional-Web/Test-a-web-page-with-amCharts-trend-graph/m-p/213344/highlight/true#M37656)