i tried to click this button with xpath, classname, and css locator. I even put a time wait so it can load properly first, but nothing worked. still can't click the button, please help.
<div class="relative create-disbursement-dropdown" size="small">
<button data-v-a7f43302="" type="button" variant="solid" color="green" size="small" lefticon="" righticon="" options="[object Object],[object Object]" class="
relative
box-border
transition-all
duration-200
font-sans font-semibold
rounded-semi
py-2
disabled:pointer-events-none
disabled:cursor-default
focus:outline-none
btn-small btn-solid btn-green"><div data-v-a7f43302="" class="flex items-center justify-center space-x-2">
<div data-v-a7f43302="" class="flex items-center justify-center space-x-2"><!---->
<span data-v-a7f43302=""> Create Disbursement </span>
</div>
</button>
</div>
[this is the button looks like] : https://i.stack.imgur.com/cml4u.png
my code was like this one:
WebElement createDisburseButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[@id=\"disbursement-root\"]/div/div[1]/div/button")));
createDisburseButton.click();
the error:
Expected condition failed: waiting for element to be clickable: By.xpath: //*[@id="disbursement-root"]/div/div[1]/div/button (tried for 10 second(s) with 500 milliseconds interval)