I have tried many ways but driver doesnot clicking my element.
done=driver.find_element_by_xpath("//button[@class='dimapply-btn']")
driver.execute_script("arguments[0].click();", done)
and I have also tried with WebDriverWait.
WebDriverWait(driver, 30).until(EC.element_to_be_clickable((By.XPATH, "//button[text()='Done']"))).click()
I have also used (x,y) point.
done = driver.find_element_by_xpath('//body')
actions.move_to_element_with_offset(done, 320, 430).click().perform()
My html code is:
<div class="btn-apply" data-ng-click="applyDimensionChanges()" role="button" tabindex="0">
<button class="dimapply-btn">Done</button>
</div>
It does not throws any errors. just passes by my code and does not click. please help me out. thank you in advance. i am solving this line for two days.