I would like to seek for your help. Seems I need another eyes to look into my script as it is not working. I do not know what is wrong with the code. Did I missed something?
Below is my script:
DriverUtils.getDriver().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Actions action= new Actions(DriverUtils.getDriver());
WebElement fundAllocation = DriverUtils.getDriver().findElement(By.xpath("(*//div[@data-index = '" + dataIndex + "']/descendant::div//*[contains(@class, 'mli-donut-chart')]//*[contains(@transform,'translate')]//*[contains(@style,'fill-opacity: 1')])["+ x +"]"));
action.moveToElement(fundAllocation).build().perform();
I also try this one on perform, but still didn't work.
action.moveToElement(fundAllocation).click().build().perform();