I am faced with a situation where I need to automate some actions using selenium on a third-party website, which likely means I cannot utilize the highcharts API.
Upon loading the third-party website, there is no tooltip element present in the HTML body. It appears that it gets dynamically added when the cursor hovers over the chart.
I am looking to display the tooltip using Java Selenium. If there is a way to achieve this using JavaScript, please share and I will attempt to incorporate it into the Selenium code myself.
So far, my attempts through the browser console with JavaScript to trigger a 'mouseover' event or add a 'hover' class to different elements within the highcharts container have been unsuccessful. The tooltip does not show up in the HTML body, making it impossible for me to select it.
I suspect the issue mentioned above can be replicated if the element with the highcharts-tooltip
class is only added to the HTML body when the user hovers over the chart.