Guidance Needed: Automating Complex Sankey / Flow Chart Using Selenium

13 views
Skip to first unread message

Komal Rai

unread,
9:18 AM (14 hours ago) 9:18 AM
to Selenium Users

Hi Selenium Community,

I am working on automating a web application dashboard that contains a complex Distributor to Facility Flow visualization (Sankey-style chart with multiple nodes and colored flow paths).

The chart behavior includes:

  • Hovering on flow lines to display dynamic tooltips

  • Different flow states represented by colors (e.g., Fulfilled, In Transit, Delayed)

  • Multiple source nodes (Distributors) flowing through intermediate nodes to destination facilities

  • Filters (dropdowns) that dynamically change the chart data

I would like guidance on:

  1. Best practices to identify and interact with SVG elements used in such Sankey charts

  2. Reliable ways to hover on specific paths/links and capture tooltip data using Selenium

  3. Whether ActionChains is sufficient or if JavaScript execution is recommended

  4. How to validate data correctness when DOM attributes are dynamically generated

  5. Any known limitations of Selenium for this use case and recommended alternatives (if any)

If anyone has experience automating:

  • SVG-based charts

  • D3.js / Highcharts / custom visualization components

Your suggestions, sample approaches, or references would be extremely helpful.

Thank you in advance for your support.

Best regards,
Komal Rai

Screenshot 2025-12-23 173222.png

venkatesh iyengar

unread,
5:25 PM (6 hours ago) 5:25 PM
to seleniu...@googlegroups.com
Happy New Year Komal ,

Please find below a few suggestions which could help you.

  1.  Locate path by semantic attribute (color, data-id).
  2.  Hover with Actions → fallback to JS dispatch if tooltip doesn’t appear.
  3. Wait for tooltip → capture text.
  4. Validate attributes (stroke, data-value) against expected dataset.
  5. Re-locate after filters → guard against stale elements
  • Regards,
  • Venkatesh

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/5a117815-2488-4971-b26e-9ca6e2a8ea17n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages