Hey this should be fixed now!
There is an issue however when clicking elements within an IFrame.
To get around this, rather than using the .click()
method, I created a new method to click an element using it’s coordinates, which seems to work.
protected void ClickElementByCoordinates(IWebDriver driver, IWebElement element)
{
_driver = driver;
_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(10));
_wait.Until(ExpectedConditions.ElementToBeClickable(element));
var x = element.Location.X;
var y = element.Location.Y;
_jsDriver = _driver as IJavaScriptExecutor;
if (_jsDriver != null)
{
_jsDriver.ExecuteScript("document.elementFromPoint(arguments[0],arguments[1]).click();", x, y);
}
}
My example is in C#, however if you’re using another language, you should be able to achieve the same!