TestComplete help to Draw a polygon using ArcGIS Drawing Tool - Chrome webportal
Hi,
In our application testing, we got a requirement to automate one scenario which includes web actions and drawing a diagram on an inbuilt design tool. As part of this we need to draw a polygon using inbuilt ArcGIS Drawing Tool, where we may need to do below actions
1. Draw a line combining two points.
2. Draw lines to form a rectangle [Creating a rectangle is the minimum requirement to test our functionality]
3. Select lines to do other actions
4. Select all on the diagram Attached a sample image for your reference.
This can be done using the record and play option provided by TestComplete. But we avoid record and play in our testing as it fails many cases. We only use XPath method to automate most of the web actions. In the above mentioned requirement the location of the rectangle created may also change each time we run, which is very difficult to implement using Record and play option. Could you please give us a best possible solution for this scenario.
Note: Same issue was raised earlier with SmartBear, and they came up with below conclusion: "We've discussed the situation with the team once again, and unfortunately it looks like at the moment there is no way TestComplete can recognize the objects inside SVG. So, a meeting is not going to be very helpful here - as the "HTML5 Support" article I mentioned says, you should be able to interact with the elements using getElementById, getElementsByTagName etc. But, you can register a corresponding feature request here: "TestComplete Feature Requests". If it gets popular, the product owner will select it for discussion."
Can anyone help how this can be addressed.
Let me know if you need more details on this.
Thank you for all your help in advance,
Kind Regards,
Srini