I was struggling with a popup dialog in a website I\'m automating, for some reason it wouldn\'t click a button in the dialog but interacted fine with everything else fine.
Just testing similar scenario.
First with Actions
click:
actions.moveToElement(driver.findElement(By.xpath("//*[@id='relevantJobsAndCareerUpdates_1']"))).click().perform()
And second one with WebElement
click:
driver.findElement(By.xpath("//*[@id='relevantJobsAndCareerUpdates_1']"))).click()
The second one does not work. It gives the error message:
Root cause: org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (307, 24). Other element would receive the click:
This is the similar problem as previous. Using Actions solve this problem.