I recently updated my chrome version to latest i.e. 79.0.3945.130 (Official Build) (64-bit)
and downloaded compatible chromedriver from here
I\'ve start
In my case i was using new Actions(driver).moveToElement(element).perform();
in Command Listener before each command so it move the focus on element which being executed.
This line causing the error mentioned in question. After commenting this its working fine.
This error message...
Javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite
...implies that the WebDriver instance was unable to find the element for one or the other reasons:
<iframe>
/ <frame>
display: none;
The relevant HTML would have been helpful to analyze the issue in a better way. However, you need to take care of a couple of things as follows:
The id
attribute of the <select>
tag is attribute178 which is clearly dynamic. So you need to construct a dynamic Locator Strategy
As the id
attribute of the <select>
tag is dynamic, you need to induce WebDriverWait for the element_to_be_clickable()
and you can use either of the following Locator Strategies:
cssSelector
:
Select s = new Select(new WebDriverWait(getDriver(), 20).until(ExpectedConditions.elementToBeClickable(By.cssSelector("select.super-attribute-select[id^='attribute']"))));
s.selectByIndex(1);
xpath
:
Select s = new Select(new WebDriverWait(getDriver(), 20).until(ExpectedConditions.elementToBeClickable(By.xpath("//select[@class='super-attribute-select' and starts-with(@id, 'attribute')]"))));
s.selectByIndex(1);